mirror of
https://github.com/ziglang/zig.git
synced 2026-01-19 13:55:20 +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
147 B
C
8 lines
147 B
C
#include <string.h>
|
|
|
|
char *strchr(const char *s, int c)
|
|
{
|
|
char *r = __strchrnul(s, c);
|
|
return *(unsigned char *)r == (unsigned char)c ? r : 0;
|
|
}
|