mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
builtin: define atoi & ftell
This commit is contained in:
parent
14309594fe
commit
77645fcf35
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
module builtin
|
||||
|
||||
// struct C.FILE {}
|
||||
|
||||
// <string.h>
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue