[erlang-questions] erlang atom data length is not enough

prasantha kumara <>
Thu Jan 8 06:22:00 CET 2009


Hi all.
i have sent a data steam which is 2048byte long to the c node from the
erlang node.
i want to process them in the c node.to do that i cast it to ta erl atom
using ERL_ATOM_PTR().becouse i suppose to get he byte by byte using a c
pointer.

the code i have writtenis as follows

argp = erl_element(2, tuplep);
unsigned char* pp;
pp=ERL_ATOM_PTR(argp);
int i;
for(i=0;i<10;i++){
pp=a[0];
printf(" %d  ",*(pp+i));
}
but it can prints only 255 bytes from the byte stream .can any body help me
get the total byte steam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090108/67003fa3/attachment.html>


More information about the erlang-questions mailing list