Guardian C Library Calls Reference Manual

Reference to Library Calls
Guardian TNS C Library Calls Reference Manual128833 3-195
strcoll
strcoll
The strcoll function compares two strings according to the rules of the current locale
collating sequence. The strcoll function compares each byte, the same as the strcmp
function does, because there exists no defined collating sequence for a 2-byte character
set.
s1
points to the first string.
s2
points to the second string.
Return Value
is zero if the two strings are equal, is a positive number if the string pointed to by s1
is greater than the string pointed to by s2, is a negative number if the string pointed
to by s1 is less than the string pointed to by s2.
#include <stringh>
int strcoll(const char *s1, const char *s2);