> however, it comes out 'na0' ....
> anybody knows the reason ?? it only can accept 3
> characters ??

Um, because you only allocated enough room for 2 characters

> typedef struct {
>   Char name[2];            // Only enough room for 2 characters
>   UInt8 reserved;
> } MyRecordType;

Pick the Max # of characters that will be  needed in name and add 1 (for
NULL)
try:
 typedef struct {
   Char name[51];            // Now there is enough room for 50 chars plus
NULL
   UInt8 reserved;
 } MyRecordType;


----- Original Message -----
From: "cpssband cpssband" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 9:17 AM
Subject: Save Record Correctly


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

Reply via email to