Hi Guys,
I have a simple problem with, what seems to me, should be a simple solution but it's just not working.
I have a 2D array declared as
This array is then dynmaically filled with 4 or 5 strings I then want to clear this array once I have finished with it.Code:*array[20]
I have tried runnig it through a loop such as
I've also tried array[i] = 0, array[i] = NULL.Code:for (i=0;i<totalnumberofstrings;i++) { array[i] = '\0' }
Everything I have tried it's not effecting the values of the array and they won't clear.
I assume it's not working because it is actually a 2D array, I'm just stuggling how to clear it.
Thank you very much for any help!!
Forg



LinkBack URL
About LinkBacks


