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
171 B
C
Vendored
8 lines
171 B
C
Vendored
#include <wchar.h>
|
|
|
|
wchar_t *wcschr(const wchar_t *s, wchar_t c)
|
|
{
|
|
if (!c) return (wchar_t *)s + wcslen(s);
|
|
for (; *s && *s != c; s++);
|
|
return *s ? (wchar_t *)s : 0;
|
|
}
|