Cherlene Lim wrote in message <7573@palm-dev-forum>...
>
>   can I know how to set a character pointer to null value?

Char *p;        // declare character pointer (note: does not allocate
memory)

p = NULL;    // set it to NULL

... or was that not what you were after?  If you want to
clear the memory being pointed to by the character
pointer, it would be something like this:

Char s[10];                // allocate 10 chars, referenced by "s"

MemSet(s, 10, 0);    // set all 10 to NUL



--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to