aboutsummaryrefslogtreecommitdiff
path: root/src/libc.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-12 16:43:06 +0200
committerlemon <lsof@mailbox.org>2022-08-12 16:43:06 +0200
commit1eb17cda6780476b166b55d0fedc3ad355969e87 (patch)
treeccb4ffa74cc37f24e93d4325ccf395d3fe73529f /src/libc.hff
parentf14aee6184568bae34f8d8d8f9140fa760099fa5 (diff)
selfhosted lexer
Diffstat (limited to 'src/libc.hff')
-rw-r--r--src/libc.hff3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libc.hff b/src/libc.hff
index a231614..488a495 100644
--- a/src/libc.hff
+++ b/src/libc.hff
@@ -18,12 +18,15 @@ extern fn abort() void;
extern fn exit(c int) void;
extern fn perror(s *const u8) void;
extern fn malloc(n usize) *void;
+extern fn calloc(n usize, m usize) *void;
extern fn realloc(p *void, n usize) *void;
extern fn free(p *void) void;
// string.h
extern fn strlen(s *const u8) usize;
extern fn strcmp(a *const u8, b *const u8) int;
+extern fn memcpy(*void, *const void, usize) *void;
+extern fn strcpy(*u8, *const u8) *u8;
//ctype.h
extern fn tolower(int) int;