projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more fmemopen null termination fixes
[oweals/musl.git]
/
src
/
string
/
wcsspn.c
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
}