There are some differences between the ANSI C libraries and the PalmOS libraries. Take a time to look at the PalmOS Reference Guide and PalmOS Companion to know these differences.
Basically: Memory functions (as malloc, realloc and free) and the string lib (strcpy, str...) doesn't have these names on PalmOS, due to memory protection, I guess.
Although, they are there. :) (MemPtrNew, MemPtrFree, StrCopy, StrCompare, etc...)
Cheers!
-- J. Machado
-- [EMAIL PROTECTED]
kshaff03 escreveu:
How do Iuse malloc, or something similiar in Codewarrior version 8 for palm?
Is there a library I must include?
void my_function(const UInt size)
{
char *tempBuffer = (char *) malloc(size);
}
i get:
malloc is undefined
Kevin
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
