repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move msghdr and cmsghdr out of bits/socket.h
[musl.git]
/
src
/
string
/
wcsspn.c
blob
4320d8f6b7dc73de483b4ff1d47ed6e20f4be5c1
1
#include <wchar.h>
2
3
size_t
wcsspn
(
const wchar_t
*
s
,
const wchar_t
*
c
)
4
{
5
const wchar_t
*
a
;
6
for
(
a
=
s
; *
s
&&
wcschr
(
c
, *
s
);
s
++);
7
return
s
-
a
;
8
}