2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 # define Wstrcmp wcscmp
12 # define Wstrcoll wcscoll
14 # define Wstrcmp strcmp
15 # define Wstrcoll strcoll
18 int Wstrcmp(register const Wchar *s1, register const Wchar *s2)
21 while (*((Wuchar *)s1) == *((Wuchar *)s2)) {
28 return (*((Wuchar *)s1) < *((Wuchar *)s2)) ? -1 : 1;
32 while (((r = ((int)(*((Wuchar *)s1))) - *((Wuchar *)s2++))
38 libc_hidden_def(Wstrcmp)
40 #ifndef __UCLIBC_HAS_LOCALE__
41 strong_alias(Wstrcmp,Wstrcoll)
42 libc_hidden_def(Wstrcoll)