<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I am bit confused in C node for this......beacuse
when i send "abc" from Erlang node to C.....</font>
<br>
<br><font size=2 face="sans-serif">I have used all this to check the type.......where
buff is the message from Erlang node i.e. "abc"</font>
<br>
<br><font size=2 face="sans-serif"> k = ERL_IS_INTEGER(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " intType
%d\n\r", k);</font>
<br>
<br><font size=2 face="sans-serif"> k = ERL_IS_UNSIGNED_INTEGER(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " uintType
%d\n\r", k);</font>
<br>
<br><font size=2 face="sans-serif"> k = ERL_IS_FLOAT(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " fltType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_ATOM(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " atomType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_PID(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " pidType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_PORT(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " portType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_REF(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " refType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_TUPLE(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " tupType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_BINARY(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " binType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_LIST(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " listType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_EMPTY_LIST(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " elistType
%d\n\r", k);</font>
<br><font size=2 face="sans-serif"> k = ERL_IS_CONS(buff);</font>
<br><font size=2 face="sans-serif"> fprintf(stderr, " consType
%d\n\r", k);</font>
<br>
<br>
<br><font size=2 face="sans-serif">Now, it gives true for int type ..............and
hence I have to use erl_mk_int.....which gives me values in Ascii in C
node...</font>
<br>
<br><font size=2 face="sans-serif">Is there a way in which I get abc in
C node instead of Ascii values..</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">jb</font>
<br><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
</pre>