scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

strcoll.man (815B)


      1 .TH strcoll 3 scc\-VERSION
      2 .SH NAME
      3 strcoll - compare two strings according to the current locale
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 int strcoll (const char *s1, const char *s2)
      8 .SH DESCRIPTION
      9 The
     10 .BR strcoll ()
     11 function performs a locale-aware comparison of the string at
     12 .I s1
     13 with the string at
     14 .IR s2 .
     15 Both strings are interpreted according to the LC_COLLATE category
     16 of the current locale.
     17 .PP
     18 The result indicates whether
     19 .I s1
     20 is lexicographically greater than, equal to, or less than
     21 .I s2
     22 under the ordering rules of the active locale.
     23 .SH RETURN VALUE
     24 A positive integer is returned if
     25 .I s1
     26 is greater than
     27 .IR s2 ,
     28 zero if the two strings are equal,
     29 and a negative integer if
     30 .I s1
     31 is less than
     32 .IR s2 ,
     33 according to the current locale collation order.
     34 .SH STANDARDS
     35 ISO/IEC 9899:1999 Section 7.21.4.3