-
-
Notifications
You must be signed in to change notification settings - Fork 9
sys cstdlib
IsaacShelton edited this page Nov 13, 2022
·
5 revisions
sys/cstdlib.adept
contains symbols from <stdlib.h>
.
define RAND_MAX = /* ??? */
foreign system(*ubyte) int
foreign exit(int) void
foreign abort() void
foreign atexit(func() void) void
foreign calloc(usize, usize) ptr
foreign free(ptr) void
foreign malloc(usize) ptr
foreign realloc(ptr, usize) ptr
foreign atof(*ubyte) double
foreign atoi(*ubyte) int
foreign atol(*ubyte) long
foreign strtod(*ubyte, out **ubyte) double
foreign strtol(*ubyte, out **ubyte, int) long
foreign strtoul(*ubyte, out **ubyte, int) ulong
foreign abs(int) int
foreign labs(long) long
foreign getenv(*ubyte) *ubyte
foreign qsort(out ptr, usize, usize, ptr) void
foreign bsearch(ptr, ptr, usize, usize, func(ptr, ptr) int) ptr
foreign rand() int
foreign srand(uint) void
#default sys_cstdlib_rand_max 0
#default sys_cstdlib_show_rand_max_warning true