At 05:15 AM 4/2/2006, you wrote:
Subject: sending '\x00' over a udp socket
From: "Troy Lokitz" <[EMAIL PROTECTED]>
Date: Sat, 1 Apr 2006 17:33:35 -0000
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.
MemCopy (stringbuf,"\x01\x02\x00\x01", 4);
But you should no long call this a string, it really should be called
a memory array.
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/