From: "Henk Jonas" <[EMAIL PROTECTED]>

> if you have a chunk of memory (getting from MemLock or whatever) and 
> you don't know if it is initialized with "\0" at the beginning, you 
> better do a MemSet with 0x00 to ensure you will have a 0-terminated 
> string, regardless what you do.

To turn the memory into a string, simpler and faster is just *mem = '\0';

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to