*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> strcoll (3)              
Title
Content
Arch
Section
 

STRCOLL(3)

Contents


NAME    [Toc]    [Back]

       strcoll - compare two strings using the current locale

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       int strcoll(const char *s1, const char *s2);

DESCRIPTION    [Toc]    [Back]

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

RETURN VALUE    [Toc]    [Back]

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

CONFORMING TO    [Toc]    [Back]

       SVID 3, BSD 4.3, ISO 9899

NOTES    [Toc]    [Back]

       In the "POSIX" or "C" locales strcoll() is equivalent to strcmp().

SEE ALSO    [Toc]    [Back]

      
      
       bcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strxfrm(3), setlocale(3)



GNU				  1993-04-12			    STRCOLL(3)
[ Back ]
 Similar pages
Name OS Title
I18N::Collate IRIX compare 8-bit scalar data according to the current locale *** WARNING: starting from the Perl version 5.003_06
wcsxfrm Tru64 Transform wide-character strings for collation in the current locale
strcoll NetBSD compare strings according to current collation
strcoll OpenBSD compare strings according to current collation
strcoll FreeBSD compare strings according to current collation
wcscoll FreeBSD compare wide strings according to current collation
strcoll Tru64 Compares strings using locale collation
strncmp FreeBSD compare strings
strcmp NetBSD compare strings
strcmp FreeBSD compare strings
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service