|
From: Khalid El-K. <kha...@ho...> - 2003-03-31 00:04:45
|
Hi fellows, I'm developing a low-level C-based string manipulation API ... in my Implementation of the function "explode" which splits a string into pieces (with a specified separator) and returns these pieces into an array. The problem is, i need to initialize the returning array i knew the way to initialize the string array is: char *temp[5]; //where 5 is the number of array elements but ... for performance reasons, I need the number of elements (5 above) not to be specified from the begining, i mean i need to use something like realloc to resize this array on-the-fly ... Is there a possible way to do that fellows ? Thanx in advance :) Regards, Khalid Al-Kary _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |