diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-12 21:59:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-12 21:59:00 +0000 |
commit | fd6b9378be20243eaea7da1c2ddb3d68f123d28e (patch) | |
tree | d35598812d68d75aa83fcc1d2c22637cae2558e8 /libc/string/wstring.c | |
parent | f1daf535ed9fa4313524a73646df140bdd35ce93 (diff) |
Cleanup the mess, remove now obsolete files
-Erik
Diffstat (limited to 'libc/string/wstring.c')
-rw-r--r-- | libc/string/wstring.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/libc/string/wstring.c b/libc/string/wstring.c index 53c5af99c..4c619ad36 100644 --- a/libc/string/wstring.c +++ b/libc/string/wstring.c @@ -320,16 +320,19 @@ int Wstrcmp(register const Wchar *s1, register const Wchar *s2) /**********************************************************************/ #ifdef L_strcoll #error implement strcoll and remove weak_alias!! -/* extern unsigned char *_ctype_collate; */ -/* int strcoll(register const char *s1, const char *s2) */ -/* { */ -/* int r; */ +#if 0 +extern unsigned char *_ctype_collate; +int strcoll(register const char *s1, const char *s2) +{ + int r; + + while (!(r = (_ctype_collate[(int)(*s1++)]-_ctype_collate[(int)(*s2++)]))); + + return r; +} +#endif -/* while (!(r = (_ctype_collate[(int)(*s1++)]-_ctype_collate[(int)(*s2++)]))); */ - -/* return r; */ -/* } */ #endif /**********************************************************************/ #ifdef L_wcsncmp @@ -369,8 +372,8 @@ int Wstrncmp(register const Wchar *s1, register const Wchar *s2, size_t n) /**********************************************************************/ #ifdef L_strxfrm #error implement strxfrm -/* size_t strxfrm(char * __restrict s1, const char * __restrict s2, size_t n) */ -#endif +/* size_t strxfrm(char *dst, const char *src, size_t len); */ +#endif /**********************************************************************/ #ifdef L_wmemchr #define L_memchr |