Sign in
cobalt
/
cobalt
/
3cd5432aaed8f14f27f66ade1b51aa71df939492
/
.
/
third_party
/
musl
/
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
;
}