Date: Mon, 11 Nov 1996 02:34:53 -0600 (CST) From: Ely Wilson To: Eli Zaretskii cc: djgpp AT delorie DOT com Subject: Re: array of pointers to strings, BC++, DJGPP and weird printing , behavior In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 -