Exemple
void
foo(
char
*string1,
char
*string2)
{
if
(string1 == string2) {
}
}
Solution
Si votre intention était de vérifier si les chaînes sont identiques, écrivez plutôt ce qui suit :
void
foo(
char
*string1,
char
*string2)
{
if
(strcmp(string1, string2) == 0) {
}
}