Next: strlen

Prev: pad

strcmp

strcmp(string1, string2)
This function compares string1 against string2 and returns zero if they are equal, greater than zero if string1 is lexically greater than string2, and less than zero if string1 is lexically less than string2. The comparison performed by strcmp() is case-sensitive.

strcmp("Foo", "bar")
     => -28
strcmp("cashmir", "cashmiR")
     => 32
strcmp("foo", "foo")
     => 0