diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-12-20 16:34:35 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-12-20 16:34:35 -0500 |
commit | 48ef7704c03e7e554c05de01bf8d1d70c16cb6f4 (patch) | |
tree | 34d52513de6c903b4f52ef87d885c73472daf469 /libc/string/strcoll.c | |
parent | f49e7cbb33e6e27b0ce5eb35244d7241c800a7c1 (diff) |
add libc building to agbcc.
Diffstat (limited to 'libc/string/strcoll.c')
-rw-r--r-- | libc/string/strcoll.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libc/string/strcoll.c b/libc/string/strcoll.c new file mode 100644 index 0000000..8760b22 --- /dev/null +++ b/libc/string/strcoll.c @@ -0,0 +1,48 @@ +/* +FUNCTION + <<strcoll>>---locale specific character string compare + +INDEX + strcoll + +ANSI_SYNOPSIS + #include <string.h> + int strcoll(const char *<[stra]>, const char * <[strb]>); + +TRAD_SYNOPSIS + #include <string.h> + int strcoll(<[stra]>, <[strb]>) + char *<[stra]>; + char *<[strb]>; + +DESCRIPTION + <<strcoll>> compares the string pointed to by <[stra]> to + the string pointed to by <[strb]>, using an interpretation + appropriate to the current <<LC_COLLATE>> state. + +RETURNS + If the first string is greater than the second string, + <<strcoll>> returns a number greater than zero. If the two + strings are equivalent, <<strcoll>> returns zero. If the first + string is less than the second string, <<strcoll>> returns a + number less than zero. + +PORTABILITY +<<strcoll>> is ANSI C. + +<<strcoll>> requires no supporting OS subroutines. + +QUICKREF + strcoll ansi pure +*/ + +#include <string.h> + +int +_DEFUN (strcoll, (a, b), + _CONST char *a _AND + _CONST char *b) + +{ + return strcmp (a, b); +} |