Sign in
android
/
platform
/
external
/
musl
/
3ea3fcf78a5532e118856846df8adbf3f60ef716
/
.
/
src
/
string
/
wcsspn.c
blob: 4320d8f6b7dc73de483b4ff1d47ed6e20f4be5c1 [
file
] [
log
] [
blame
]
#include
<wchar.h>
size_t
wcsspn
(
const
wchar_t
*
s
,
const
wchar_t
*
c
)
{
const
wchar_t
*
a
;
for
(
a
=
s
;
*
s
&&
wcschr
(
c
,
*
s
);
s
++);
return
s
-
a
;
}