delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/01/03:00:00

From: "Damian Yerrick" <NOSP AT Musenet@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <38428DE3 DOT 17179D7D AT dtn DOT ntl DOT com>
Subject: Re: pointers?
Lines: 23
Organization: Pin Eight Software <http://pineight.8m.com/>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <RP114.1305$aQ.42416@dfiatx1-snr1.gtei.net>
X-Trace: /Kp2loprx1wU6x/D/jGFA0ROil9O3QF7yt77I3M+9kvs60RjzfTDAUzjeED1zz4Vm5nmb7+vZW53!6KnTPL2ElkQifMLIt2992ajA+gLj9fJzG2mAbAQXHnDgF836Ifr5xwy8id4Kf2xLDmqc9xEN
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Wed, 01 Dec 1999 04:52:01 GMT
Distribution: world
Date: Wed, 01 Dec 1999 04:52:01 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

<steven DOT watson AT dtn DOT ntl DOT com> wrote in message
news:38428DE3 DOT 17179D7D AT dtn DOT ntl DOT com...
> Hello Everyone
> I would be pleased if someone could help me in my dilemma
> I have just started to learn C(c for dummies) using djgpp
> at the moment I am just finding my feet
>
> but I have a question its something that I cannot figure out
>
> how do I get an array of pointers to an array of char?

char *stringData[tooMany];

If you need it dynamically sized, try
  char **stringData;
and when you malloc() or realloc(), use as the size
  nStrings * sizeof(stringData[0]);


Damian Yerrick


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019