Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / strcoll.c
blob7fa8d137318b2fa6102ea65d56a80b156e9b8dea
1 /*
2 FUNCTION
3 <<strcoll>>---locale-specific character string compare
5 INDEX
6 strcoll
8 SYNOPSIS
9 #include <string.h>
10 int strcoll(const char *<[stra]>, const char * <[strb]>);
12 DESCRIPTION
13 <<strcoll>> compares the string pointed to by <[stra]> to
14 the string pointed to by <[strb]>, using an interpretation
15 appropriate to the current <<LC_COLLATE>> state.
17 (NOT Cygwin:) The current implementation of <<strcoll>> simply
18 uses <<strcmp>> and does not support any language-specific sorting.
20 RETURNS
21 If the first string is greater than the second string,
22 <<strcoll>> returns a number greater than zero. If the two
23 strings are equivalent, <<strcoll>> returns zero. If the first
24 string is less than the second string, <<strcoll>> returns a
25 number less than zero.
27 PORTABILITY
28 <<strcoll>> is ANSI C.
30 <<strcoll>> requires no supporting OS subroutines.
32 QUICKREF
33 strcoll ansi pure
36 #include <string.h>
38 int
39 strcoll (const char *a,
40 const char *b)
43 return strcmp (a, b);