blob: 4751971bc83b32a2ed828884b5c3b9cc68134b9c [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/*
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
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
25libc_hidden_def(Wstrchrnul)
26# endif
27#endif