From fd6b9378be20243eaea7da1c2ddb3d68f123d28e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 12 Jun 2002 21:59:00 +0000 Subject: Cleanup the mess, remove now obsolete files -Erik --- libc/string/wstring.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'libc/string/wstring.c') 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 -- cgit v1.2.3