ciabatta/code/os/win/win_io.c

13 lines
231 B
C
Raw Normal View History

2022-06-07 02:57:57 +00:00
2022-06-07 06:15:47 +00:00
#include "win.h"
2022-06-07 02:57:57 +00:00
// 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);
}