add SEEK_DATA/SEEK_HOLE
[uclibc-ng.git] / libc / string / strchrnul.c
blob9c10e1fc8f0a226d2d6e9c4ddde55513f32d951c
1 /*
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.
6 */
8 #include "_string.h"
10 #ifdef __USE_GNU
12 #ifdef WANT_WIDE
13 # define Wstrchrnul wcschrnul
14 #else
15 # define Wstrchrnul strchrnul
16 #endif
18 Wchar *Wstrchrnul(register const Wchar *s, Wint c)
20 --s;
21 while (*++s && (*s != ((Wchar)c)));
22 return (Wchar *) s;
24 # ifndef WANT_WIDE
25 libc_hidden_def(strchrnul)
26 # endif
27 #endif