--- Joe <[EMAIL PROTECTED]> wrote:
> 
> the prototype for MemSet is
>   Err MemSet (void* dstP, Int32 numBytes, UInt8 value)
> and it *always* returns 0, which == NULL, MOL.
> MemSet does not use any memory that you have to free.  MemSet 
> sets a memory range in the dynamic heap to a specific value.  
> The memory range starts at the address of 'dstP', and continues 
> for 'numBytes' bytes. It sets all of those bytes to 'value'.
> 

A small clarification: when I say that MemSet does not use any memory
that you have to free, I mean it does not allocate new memory chunks
and expect you to free those memory chuncks.  In the prototype (above),
'dstP' is a pointer to some memory that you own.  If you allocated that
memory (with MemPtrNew() or similar method) then you are still
obligated to free that memory when you are done with it.


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.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