Message-id: Date: Mon, 28 May 2001 11:45:38 +0300 Subject: Re: RE: Re(2): Array of poiters to an Array To: djgpp AT delorie DOT com Cc: djgpp AT delorie DOT com From: "NirinaMichel Ratoandromanana/DF" References: In-Reply-To: MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com It does! Thanks. >One way is to try declaring an array of pointers >char **array_of_pointers[]; >Now you need to malloc enough space for the number of string pointers you >need >array_of_pointers = (char * >)malloc(number_of_strings*sizeof(char *)); >Next allocate each of these pointers enough space to hold the required >string >array_of_pointers[0] = (char *)malloc(size_of_string1*sizeof(char)); >array_of_pointers[1] = (char *)malloc(size_of_string2*sizeof(char)); >etc... >You can fill these arrays with code like >array_of_pointers[0] = "my string"; >Hope this helps ?:)