>how do I allocate some memory, clear it out, and then set my variable type
>to use it???

There are a few different ways to do this. Here's my preferred method:

MemPtr ptr = MemPtrNew (sizeof ( datatype));
MemSet ( ptr, sizeof ( datatype), 0 );
datatype* var = ( datatype ) ptr;

Don't forget to free the pointer when you're done with it.

Regards,
Steve Mann
-- 
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461              805.784.9462 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.com

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

Reply via email to