source: trunk/libs/newlib/src/newlib/libc/string/wcscoll.c @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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