move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / string / wcsspn.c
blob4320d8f6b7dc73de483b4ff1d47ed6e20f4be5c1
1 #include <wchar.h>
3 size_t wcsspn(const wchar_t *s, const wchar_t *c)
5 const wchar_t *a;
6 for (a=s; *s && wcschr(c, *s); s++);
7 return s-a;