1 /* 2 * Copyright (C) 2002 Manuel Novoa III 3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org> 4 * 5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. 6 */ 7 8 #include "_string.h" 9 10 #ifdef __USE_GNU 11 12 #ifdef WANT_WIDE 13 # define Wstrchrnul wcschrnul 14 #else 15 # define Wstrchrnul strchrnul 16 #endif 17 Wstrchrnul(register const Wchar * s,Wint c)18Wchar *Wstrchrnul(register const Wchar *s, Wint c) 19 { 20 --s; 21 while (*++s && (*s != ((Wchar)c))); 22 return (Wchar *) s; 23 } 24 # ifndef WANT_WIDE 25 libc_hidden_def(strchrnul) 26 # endif 27 #endif 28