mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +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
8 lines
144 B
C
Vendored
8 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;
|
|
}
|