You also have to ask what the content of outbuffer is. If it contains a
valid NUL-terminated string at the time of the call, then StrLen is what you
probably want to use. OTOH, if it is an "empty" buffer to be used later for
some purpose, then you probably want to use "sizeof(outbuffer)" to allocate
space for the whole thing (sizeof will return 1024 in this case).
Doug Gordon
GHCS Software
char outbuffer[1024];
typedef struct
{
char **name;
int *idx;
int total;
}AddrRecord;
addrList.name[addrList.total]=(char*)MemPtrNew(StrLen(outbuffer)+1);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/