I guess the way around that would be:
if(strncmp(my_buffer, array[x], strlen(my_buffer)) == 0)
BTW - I've decided to trash this method, and instead use a list
Type: Posts; User: DigitalKhaos
I guess the way around that would be:
if(strncmp(my_buffer, array[x], strlen(my_buffer)) == 0)
BTW - I've decided to trash this method, and instead use a list
I have what I think is a simple question.
I have an array as follows:
char array[5][100] = {
"string 1",
"string 2",
"string 3",
"string 4",
"string 5"
Why not just use a switch(menu_choice)?
Heyas all,
Just posting to introduce myself. Prolly won't hear from me much, at first at least. I know C/C++ and that's about all right now. Anyways, just wanted to say hi.
Laters.
Kha0s