aboutsummaryrefslogtreecommitdiff
path: root/src/libc.hff
blob: d686905c0ff1090f404e8f5d22578f90df86ce0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// stdio.h
struct FILE;
extern static stdin  *FILE,
              stdout *FILE,
              stderr *FILE;
extern fn printf(fmt *const u8, ...) void;
extern fn fprintf(fp *FILE, fmt *const u8, ...) void;

// stdlib.h
extern fn abort() void;
extern fn exit(c int) void;
extern fn malloc(n usize) *void;
extern fn realloc(p *void, n usize) *void;
extern fn free(p *void) void;