ciabatta/code/os/win/io.c

16 lines
265 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;
};
2022-06-07 06:02:23 +00:00
void _os_file_write(void* ctx, size_t n, const char str[]) {
2022-06-07 02:57:57 +00:00
DWORD written = 0;
WriteFile((HANDLE) ctx, str, n, &written, NULL);
}