mirror of
https://github.com/fluencelabs/musl
synced 2025-05-04 11:32:14 +00:00
9 lines
144 B
C
9 lines
144 B
C
|
#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;
|
||
|
}
|