mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 02:33:07 +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
12 lines
237 B
C
12 lines
237 B
C
#include "stdio_impl.h"
|
|
|
|
/* This function assumes it will never be called if there is already
|
|
* data buffered for reading. */
|
|
|
|
int __uflow(FILE *f)
|
|
{
|
|
unsigned char c;
|
|
if (!__toread(f) && f->read(f, &c, 1)==1) return c;
|
|
return EOF;
|
|
}
|