i'm with a question related to string comparing...i'm trying to compare two strings (well char pointers in fact :)), im using _stricmp for case insensitive comparison, but even with the conventional strcmp i'm not getting the result i want.
if(_stricmp(value,gen_arr[i])== 0){
file.seekp(-1,ios::end);
file.put((i));
file.flush();
file.close();
printf("Editing of field %s successful.\n",field);
return;
}
I'm testing this with two "strings", the first coming from the argument line (value) and the other from a char * array (thats it, an array of strings) (gen_arr) and i'm setting value with a known value in the array.
I'm doing some "print" debugging paralel with the proper debug, and the strings are correctly set, they are equal. But the comparison says otherwise. Can you guys give me a hand here?
Thanks a lot ;)