Originally posted by MadHatter
Code:
if((strcmp(string1, string2) != 1) || (strcmp(string1, string2) != 0))
I doubt this is what he wants, since this is a tautology (always true). You could as well have if(true) instead, since it gives the same result.

Use > 0 if the first string should be larger than the second
Use < 0 if the first string should be smaller than the second
Use == 0 if both strings should be equal
Use >= 0 and/or <= for a combination of the above
Use != 0 if either larger or smaller, but not equal