Re: String Array in C
I think I kinda figured it out. I know it's more or less a 2-dimensional array of chars, I just didn't know how to declare it.
As far as I can tell, its something like this:
char *myArray[10];
char *str = "string!";
myArray[3] = str;
That would leave "string!" in index 3 of myArray, wouldn't it?
__________________
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp
Dimitri:
Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
|