On 4/1/06, Troy Lokitz <[EMAIL PROTECTED]> 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?
you should use a memory copy/move function instead. string functions work such that the instance of a \x00 char means the end of the string has been reached so stop copying. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
