1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/builtin/cfns.v

35 lines
626 B
V
Raw Normal View History

2019-10-24 14:51:22 +03:00
module builtin
2019-10-25 12:07:50 +03:00
2019-10-26 11:14:16 +03:00
// <string.h>
2019-10-26 11:43:25 +03:00
fn C.memcpy(byteptr, byteptr, int) voidptr
2019-10-26 11:51:22 +03:00
fn C.memmove(byteptr, byteptr, int) voidptr
2019-10-26 11:14:16 +03:00
2019-10-24 14:51:22 +03:00
//fn C.malloc(int) byteptr
fn C.realloc(a byteptr, b int) byteptr
fn C.qsort(voidptr, int, int, voidptr)
fn C.sprintf(a ...voidptr) byteptr
2019-10-25 12:07:50 +03:00
fn C.strlen(s byteptr) int
2019-10-25 23:41:18 +03:00
fn C.isdigit(s byteptr) bool
2019-10-25 12:07:50 +03:00
// stdio.h
fn C.popen(c byteptr, t byteptr) voidptr
2019-10-26 11:14:16 +03:00
2019-10-26 01:55:16 +03:00
// <execinfo.h>
2019-10-25 17:59:41 +03:00
fn backtrace(a voidptr, b int) int
fn backtrace_symbols(voidptr, int) &byteptr
2019-10-25 17:59:41 +03:00
fn backtrace_symbols_fd(voidptr, int, int)
2019-10-25 12:07:50 +03:00
2019-10-26 01:55:16 +03:00
// <libproc.h>
2019-10-26 02:19:14 +03:00
fn proc_pidpath(int, voidptr, int) int
2019-10-26 01:55:16 +03:00
// Windows
fn C._setmode(int, int)
fn C._fileno(int) int
2019-10-24 14:51:22 +03:00