It took awhile, but this finally all made sense. I had read yours and Keith's response too quickly and didn't initially notice how he changed the sizeof(char) to sizeof(char *) for the higher-level array. Once I noticed that it all clicked. Just wanted to say thanks to both of you.
Brian Preston --- In [EMAIL PROTECTED], "Don Heitzmann" <[EMAIL PROTECTED]> wrote: > We're talking about two different things here. In your response, you're > refering to the 2nd MemPtrNew, which is allocating the space for each > string. You are correct, that you need to leave room for the null at the > end of each string; 3 should be fine (for 2 digit numbers). My post, and > the one from Keith that was done at almost the same time, was refering to > the 1st MemPtrNew, that is allocating the array of pointers to the strings > that you call "diffs". Each item in that array is 4 bytes long (not 3), and > is of type "char *" (or "Char *", which as Ben pointed out is equivalent). > -don > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
