Last change
on this file was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
983 bytes
|
Rev | Line | |
---|
[444] | 1 | /* |
---|
| 2 | FUNCTION |
---|
| 3 | <<strcoll>>---locale-specific character string compare |
---|
| 4 | |
---|
| 5 | INDEX |
---|
| 6 | strcoll |
---|
| 7 | |
---|
| 8 | SYNOPSIS |
---|
| 9 | #include <string.h> |
---|
| 10 | int strcoll(const char *<[stra]>, const char * <[strb]>); |
---|
| 11 | |
---|
| 12 | DESCRIPTION |
---|
| 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 | |
---|
| 20 | RETURNS |
---|
| 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 | |
---|
| 27 | PORTABILITY |
---|
| 28 | <<strcoll>> is ANSI C. |
---|
| 29 | |
---|
| 30 | <<strcoll>> requires no supporting OS subroutines. |
---|
| 31 | |
---|
| 32 | QUICKREF |
---|
| 33 | strcoll ansi pure |
---|
| 34 | */ |
---|
| 35 | |
---|
| 36 | #include <string.h> |
---|
| 37 | |
---|
| 38 | int |
---|
| 39 | strcoll (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.