strcmp() and strncmp() return one of 3 values. A negative number means that the first string comes after the 2nd string in the dictionary. A positive number means that the first string comes before the 2nd string in the dictionary. A zero means that the strings are the same.
The snippet you posted will not compile, so it's hard to says what you mean for it to do.