ciabatta/code/os/win/io.c

16 lines
262 B
C
Raw Normal View History

2022-06-07 02:57:57 +00:00
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// It's just mapped directly to HANDLE
struct FILE {
int unused;
};
void _file_write(void* ctx, size_t n, const char str[]) {
DWORD written = 0;
WriteFile((HANDLE) ctx, str, n, &written, NULL);
}