I'm having trouble allocating memory for this structure.

char            outbuffer[1024];


typedef struct
{
        char    **name;
        int             *idx;
        int             total;
}AddrRecord;

addrList.name[addrList.total]=(char*)MemPtrNew(StrLen(outbuffer)+1);

Is there any reason why i can't use the Mem Ptr or something to allocate 
the memory?


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

Reply via email to