Compares two strings and returns an integer that indicates if the strings differ and how they differ. The function uses the collating information in the LC_COLLATE category of the current locale to determine how the comparison is performed.
#include <string.h> int strcoll (const char *s1, const char *s2);
See also the strxfrm function is this section.
< 0 | Indicates that s1 is less than s2. |
= 0 | Indicates that the strings are equal. |
> 0 | Indicates that s1 is greater than s2. |