1 /* Copyright (c) 2003 Corinna Vinschen <corinna@vinschen.de> */
2 /*
3 FUNCTION
4 <<wcscoll>>---locale-specific wide-character string compare
5
6 INDEX
7 wcscoll
8
9 SYNOPSIS
10 #include <wchar.h>
11 int wcscoll(const wchar_t *<[stra]>, const wchar_t * <[strb]>);
12
13 DESCRIPTION
14 <<wcscoll>> compares the wide-character string pointed to by
15 <[stra]> to the wide-character string pointed to by <[strb]>,
16 using an interpretation appropriate to the current <<LC_COLLATE>>
17 state.
18
19 (NOT Cygwin:) The current implementation of <<wcscoll>> simply
20 uses <<wcscmp>> and does not support any language-specific sorting.
21
22 RETURNS
23 If the first string is greater than the second string,
24 <<wcscoll>> returns a number greater than zero. If the two
25 strings are equivalent, <<wcscoll>> returns zero. If the first
26 string is less than the second string, <<wcscoll>> returns a
27 number less than zero.
28
29 PORTABILITY
30 <<wcscoll>> is ISO/IEC 9899/AMD1:1995 (ISO C).
31 */
32
33 #include <_ansi.h>
34 #include <wchar.h>
35
36 int
wcscoll(const wchar_t * a,const wchar_t * b)37 wcscoll (const wchar_t *a,
38 const wchar_t *b)
39
40 {
41 return wcscmp (a, b);
42 }
43