Hi Henk,

I thought one couldn't copy a null string using
StrCopy(): I tried that before posting my question
(but usting '\0' instead of "\0") and it gave me an
error, and I believe someone in another post said that
you can't StrCopy() null....?


--- Henk Jonas <[EMAIL PROTECTED]> wrote:
> Michel,
> 
> if you know its 0-terminated, you can do a StrCopy,
> add a "\0" and 
> another StrCopy + "\0" from StrLen()+1 as well. The
> thing about MemSet 
> is 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.
> 
> Henk

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to