Do not use zero-terminated strings... ! Use a buffer and keep track of the number of bytes in a separate variable (like a good old Pascal string!).
Jerome Troy Lokitz wrote:
When I try to create a string with the '\x00' hex value, it treats it as a null, so when I try to create the following string: strcat(stringbuf,"\x01\x02\x00\x01") The following string is created: "\x01\x02" because the \x00 is null. With this in mind, how do I create a string that will include the \x00 hex value? Or, more generally, how do I send the \x00 value at all over a socket? Thanks, Troy
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
