Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / wcscoll_l.c
blob2c9df52441b31e2b38eeae594350c886b32ad178
1 /*
2 FUNCTION
3 <<wcscoll_l>>---locale-specific wide-character string compare
5 INDEX
6 wcscoll_l
8 SYNOPSIS
9 #include <wchar.h>
10 int wcscoll_l(const wchar_t *<[stra]>, const wchar_t * <[strb]>,
11 locale_t <[locale]>);
13 DESCRIPTION
14 <<wcscoll_l>> 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.
19 (NOT Cygwin:) The current implementation of <<wcscoll_l>> simply
20 uses <<wcscmp>> and does not support any language-specific sorting.
22 If <[locale]> is LC_GLOBAL_LOCALE or not a valid locale object, the
23 behaviour is undefined.
25 RETURNS
26 If the first string is greater than the second string,
27 <<wcscoll_l>> returns a number greater than zero. If the two
28 strings are equivalent, <<wcscoll_l>> returns zero. If the first
29 string is less than the second string, <<wcscoll_l>> returns a
30 number less than zero.
32 PORTABILITY
33 <<wcscoll_l>> is POSIX-1.2008.
36 #include <_ansi.h>
37 #include <wchar.h>
39 int
40 wcscoll_l (const wchar_t *a, const wchar_t *b, struct __locale_t *locale)
42 return wcscmp (a, b);