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 Wstrpbrk wcspbrk
13 # define Wstrpbrk strpbrk
16 libc_hidden_proto(Wstrpbrk)
18 Wchar *Wstrpbrk(const Wchar *s1, const Wchar *s2)
20 register const Wchar *s;
21 register const Wchar *p;
23 for ( s=s1 ; *s ; s++ ) {
24 for ( p=s2 ; *p ; p++ ) {
25 if (*p == *s) return (Wchar *) s; /* silence the warning */
30 libc_hidden_def(Wstrpbrk)