source: trunk/libs/newlib/src/newlib/libc/string/strcoll.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: 983 bytes
Line 
1/*
2FUNCTION
3        <<strcoll>>---locale-specific character string compare
4       
5INDEX
6        strcoll
7
8SYNOPSIS
9        #include <string.h>
10        int strcoll(const char *<[stra]>, const char * <[strb]>);
11
12DESCRIPTION
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.
16
17        (NOT Cygwin:) The current implementation of <<strcoll>> simply
18        uses <<strcmp>> and does not support any language-specific sorting.
19
20RETURNS
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.
26
27PORTABILITY
28<<strcoll>> is ANSI C.
29
30<<strcoll>> requires no supporting OS subroutines.
31
32QUICKREF
33        strcoll ansi pure
34*/
35
36#include <string.h>
37
38int
39strcoll (const char *a,
40        const char *b)
41
42{
43  return strcmp (a, b);
44}
Note: See TracBrowser for help on using the repository browser.