At 1:17 PM -0700 2001/08/24, Tom Hoelscher wrote:
>CharPtr dayStr=MemPtrNew(2); // 2 digits in day #
>charPtr monthStr=MemPtrNew(2); // 2 digits in month #
>charPtr yearStr=MemPtrNew(4); // 4 digits in year
Don't forgot to include space for the zero byte terminators:
char * dayStr = MemPtrNew(3); // 2 digits in day #
char * monthStr = MemPtrNew(3); // 2 digits in month #
char * yearStr = MemPtrNew(5); // 4 digits in year
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/