strcoll
compare strings according to current collation
You're viewing an older version of this page (#3285). View the current version.
NAME
<span class="Nm" id="strcoll">strcoll</span>, <span class="Nm" id="strcoll_l">strcoll_l</span>
INTERFACE
#include <string.h> int strcoll ( const char *s1, const char *s2 ) #include <xlocale.h> int strcoll_l ( const char *s1, const char *s2, locale_t loc )
DESCRIPTION
The strcoll function lexicographically compares the null-terminated strings \c s1 and \c s2 according to the current locale collation if any, otherwise call \c strcmp, and returns an integer greater than, equal to, or less than 0, according as \c s1 is greater than, equal to, or less than \c s2. \n \n While the strcoll function uses the current locale, the strcoll_l function may be passed a locale directly. See reference:xlocale (3) for more information.
SEE ALSO
reference:setlocale (3) , strcmp (3) , strxfrm (3) , reference:wcscoll (3) , reference:xlocale (3)
STANDARDS
The strcoll function conforms to