aboutsummaryrefslogtreecommitdiff
path: root/examples/libc.hff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/libc.hff')
-rw-r--r--examples/libc.hff5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/libc.hff b/examples/libc.hff
index 3a3ce24..0bec528 100644
--- a/examples/libc.hff
+++ b/examples/libc.hff
@@ -12,6 +12,11 @@ extern fn fclose(*FILE) int;
extern fn fgetc(*FILE) int;
extern fn fputc(int, *FILE) int;
extern fn fread(*void, usize, usize, *FILE) usize;
+extern fn fwrite(*void, usize, usize, *FILE) usize;
+def SEEK_SET = 0;
+extern fn fseek(*FILE, off c_long, whence int) int;
+extern fn ftell(*FILE) c_long;
+extern fn feof(*FILE) intbool;
def EOF = -1;
// stdlib.h