View Single Post
Old 02-07-07, 01:44 PM   #4
Official pain in the ass
Tuork's Avatar
Join Date: May 2003
Posts: 1,197
Send a message via MSN to Tuork
Default 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

Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote