From b33f0df152fd2242a1ea88d0961065caecd228ac Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 22 Mar 2011 16:38:47 -0700 Subject: stdlib: Make writers seekable; switch file writers to the C FILE interface to make this work --- src/lib/win32_os.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/win32_os.rs') diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs index 3ca76e77..7f113b27 100644 --- a/src/lib/win32_os.rs +++ b/src/lib/win32_os.rs @@ -14,6 +14,7 @@ native mod libc = "msvcrt.dll" { fn fgetc(FILE f) -> int; fn ungetc(int c, FILE f); fn fread(vbuf buf, uint size, uint n, FILE f) -> uint; + fn fwrite(vbuf buf, uint size, uint n, FILE f) -> uint; fn fseek(FILE f, int offset, int whence) -> int; fn ftell(FILE f) -> int; -- cgit v1.2.3