bump version for 1.0.49 release
[uclibc-ng.git] / libc / string / strpbrk.c
blobddfc751720bc8d180436912ff35ce3579d95d0d4
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 WANT_WIDE
11 # define Wstrpbrk wcspbrk
12 #else
13 # define Wstrpbrk strpbrk
14 #endif
16 Wchar *Wstrpbrk(const Wchar *s1, const Wchar *s2)
18 register const Wchar *s;
19 register const Wchar *p;
21 for ( s=s1 ; *s ; s++ ) {
22 for ( p=s2 ; *p ; p++ ) {
23 if (*p == *s) return (Wchar *) s; /* silence the warning */
26 return NULL;
28 libc_hidden_def(Wstrpbrk)