From 77645fcf35d4517e390a1717f76dd65624f9c000 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 29 Apr 2022 04:31:51 +0300 Subject: [PATCH] builtin: define atoi & ftell --- vlib/builtin/cfns.c.v | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vlib/builtin/cfns.c.v b/vlib/builtin/cfns.c.v index aab55f2e6c..52873d632b 100644 --- a/vlib/builtin/cfns.c.v +++ b/vlib/builtin/cfns.c.v @@ -1,5 +1,7 @@ module builtin +// struct C.FILE {} + // fn C.memcpy(dest voidptr, const_src voidptr, n usize) voidptr @@ -12,6 +14,8 @@ fn C.memset(str voidptr, c int, n usize) voidptr [trusted] fn C.calloc(int, int) &u8 +fn C.atoi(&char) int + fn C.malloc(int) &u8 fn C.realloc(a &u8, b int) &u8 @@ -120,6 +124,8 @@ fn C.chdir(path &char) int fn C.rewind(stream &C.FILE) int +fn C.ftell(&C.FILE) int + fn C.stat(&char, voidptr) int fn C.lstat(path &char, buf &C.stat) int