At 3:56 PM -0500 2001/07/11, Jeremy Nuss wrote:
><CODE>
>
>char ** memptr;
>memptr = (char**)MemPtrNew(sizeof(char*) * items);
>memptr[n] = (char *)MemPtrNew(StrLen("Some String") + 1);
>MemPtrFree(memptr);
>
></CODE>
>
>Does this statement code free up all the memory that was allocated for the
>array of strings?
No. It only frees the first allocation. You might try a good C programming book for
more info, rather than this forum...
Best Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/