1 /*
2 Copyright (c) 1994 Cygnus Support.
3 All rights reserved.
4
5 Redistribution and use in source and binary forms are permitted
6 provided that the above copyright notice and this paragraph are
7 duplicated in all such forms and that any documentation,
8 and/or other materials related to such
9 distribution and use acknowledge that the software was developed
10 at Cygnus Support, Inc. Cygnus Support, Inc. may not be used to
11 endorse or promote products derived from this software without
12 specific prior written permission.
13 THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 */
17 /*
18 FUNCTION
19 <<strcoll>>---locale-specific character string compare
20
21 INDEX
22 strcoll
23
24 SYNOPSIS
25 #include <string.h>
26 int strcoll(const char *<[stra]>, const char * <[strb]>);
27
28 DESCRIPTION
29 <<strcoll>> compares the string pointed to by <[stra]> to
30 the string pointed to by <[strb]>, using an interpretation
31 appropriate to the current <<LC_COLLATE>> state.
32
33 (NOT Cygwin:) The current implementation of <<strcoll>> simply
34 uses <<strcmp>> and does not support any language-specific sorting.
35
36 RETURNS
37 If the first string is greater than the second string,
38 <<strcoll>> returns a number greater than zero. If the two
39 strings are equivalent, <<strcoll>> returns zero. If the first
40 string is less than the second string, <<strcoll>> returns a
41 number less than zero.
42
43 PORTABILITY
44 <<strcoll>> is ANSI C.
45
46 <<strcoll>> requires no supporting OS subroutines.
47
48 QUICKREF
49 strcoll ansi pure
50 */
51
52 #include <string.h>
53
54 int
strcoll(const char * a,const char * b)55 strcoll (const char *a,
56 const char *b)
57
58 {
59 return strcmp (a, b);
60 }
61