From: Toby Ounsted To: Eli Zaretskii , owner-djgpp-list Cc: djgpp Subject: Re: array of pointers to strings, BC++, DJGPP and weird printing , behavior Date: Mon, 11 Nov 1996 17:56:00 +0000 Encoding: 41 TEXT Message-Id: <96Nov11.100152gmt.26498@spy.viglen.co.uk> Dosen't this mean a pointer to a pointer?? TKO. ---------- From: owner-djgpp-list To: Eli Zaretskii Cc: djgpp Subject: Re: array of pointers to strings, BC++, DJGPP and weird printing , behavior Date: 11 November 1996 08:34 On Sun, 10 Nov 1996, Eli Zaretskii wrote: > > On Sat, 9 Nov 1996, Fletcher Matlock wrote: > > > : > KeyWords = (char **) malloc ( sizeof(char) ); > > I've never seen this ^^ before, what did I miss and when? > > This is the proper way to allocate memory for an array of pointers to > char. `malloc' returns a void pointer, and you should always cast it to > a proper type before using the result. > Okay...I *MUST* be a genius then, because I already knew that...let me clarify..I've seen, used and even explained type casting in numerous situations, I've also seen, used and even explaine dthe purpose and methods behind allocating memory for arrays of..well...anything I need arrays of...what I don't recognize is that double asterisk..*THAT* I've never seen...which is what I was referring to..so, what did I miss, if anything, and when? DJGPP doesn't lend much to online syntax referral, in any way(that I know). - pleXus -