Sorry for this question. I was googling a lot, but have not found anything relevant
.
I have to compare two strings, if they are exact the same, but I have almost none experiences with strings in C.
ok, stupid me, thanx for kicking in the right direction
string.h has em all... http://www.opengroup.org/onlinepubs/007908799/xsh/string.h.html
Forgive me, but what's wrong with '=='?
Forgive me, but what's wrong with '=='?
You can't compare two strings using the "==" operator in C.Because in C a strings is an array of chars, so you have to compara each char in the array one by one.You can implement your own function to do that using a pointer to char, or you can use the ANSI C strcmp and stricmp functions.