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 Wstrcspn wcscspn
13 # define Wstrcspn strcspn
16 size_t Wstrcspn(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
) goto done
;
31 libc_hidden_def(strcspn
)