string comparison

I’ve got two char arrays that are the same - eleven characters long to hold ten characters (I’ve tried adding the terminating character to the end of both to fill the eleventh character, it makes no difference).

How do I compare them? if (string1 == string2) doesn’t work.

strcmp(string1, string2) ?

Thanks! It returns true if they're different, but that's not a problem.

It doesn't return true - it returns zero if they're identical, or a positive or negative number, depending on how the strings differ.