Can you send some examples of the corruption, with the original as well?
Also how are you printing it? Is this under a simulator?
And make sure your OriginalData is shorter than 50 chars and null
terminated.
MS
[EMAIL PROTECTED] wrote:
Dear all,
I found that the string under nesc, once being processed by some string
functions, for example, strcat() and strcpy(), will become totoally
disordered and unrecognizable.
for example:
aFunction(*OriginalData)
{
char DataToSend[50];
strcpy(DataToSend,OriginalData);
strcat(DataToSend,"}"};
//here if I print DataToSend out, it is totally disordered, but
DataToSend if fine.
...
}
I am wondering if there is any restrictions on string processing? Or
this does not happen to any of you?
Thank you.
Enric
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help