mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 17:13:19 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
9 lines
144 B
C
Vendored
9 lines
144 B
C
Vendored
#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;
|
|
}
|