1STRCOLL(3)                 Linux Programmer's Manual                STRCOLL(3)
2
3
4

NAME

6       strcoll - compare two strings using the current locale
7

SYNOPSIS

9       #include <string.h>
10
11       int strcoll(const char *s1, const char *s2);
12

DESCRIPTION

14       The  strcoll() function compares the two strings s1 and s2.  It returns
15       an integer less than, equal to, or greater than zero if  s1  is  found,
16       respectively,  to  be  less than, to match, or be greater than s2.  The
17       comparison is based on strings interpreted as appropriate for the  pro‐
18       gram's current locale for category LC_COLLATE.  (See setlocale(3).)
19

RETURN VALUE

21       The  strcoll()  function  returns  an  integer  less than, equal to, or
22       greater than zero if s1 is found, respectively, to  be  less  than,  to
23       match,  or be greater than s2, when both are interpreted as appropriate
24       for the current locale.
25

CONFORMING TO

27       SVr4, 4.3BSD, C89, C99.
28

NOTES

30       In the POSIX or C locales strcoll() is equivalent to strcmp(3).
31

SEE ALSO

33       bcmp(3), memcmp(3), setlocale(3), strcasecmp(3), strcmp(3),  string(3),
34       strxfrm(3)
35

COLOPHON

37       This  page  is  part of release 3.53 of the Linux man-pages project.  A
38       description of the project, and information about reporting  bugs,  can
39       be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43GNU                               2010-09-20                        STRCOLL(3)
Impressum