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;
}