![]() -> Click here to learn how to get live help <- |
STRCOLLIndexNAMEstrcoll - compare two strings using the current localeSYNOPSIS#include <string.h> int strcoll(const char *s1, const char *s2); DESCRIPTIONThe fBstrcoll()fP function compares the two strings fIs1fP and fIs2fP. It returns an integer less than, equal to, or greater than zero if fIs1fP is found, respectively, to be less than, to match, or be greater than fIs2fP. The comparison is based on strings interpreted as appropriate for the program's current locale for category fILC_COLLATEfP. (See fBsetlocalefP(3)).RETURN VALUEThe fBstrcoll()fP function returns an integer less than, equal to, or greater than zero if fIs1fP is found, respectively, to be less than, to match, or be greater than fIs2fP, when both are interpreted as appropriate for the current locale.CONFORMING TOSVID 3, BSD 4.3, ISO 9899NOTESIn the fI"POSIX"fP or fI"C"fP locales fBstrcoll()fP is equivalent to fBstrcmp()fP.SEE ALSObcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strxfrm(3), setlocale(3)
Index |