-
-
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) intforeign exit(int) voidforeign abort() voidforeign atexit(func() void) voidforeign calloc(usize, usize) ptrforeign free(ptr) voidforeign malloc(usize) ptrforeign realloc(ptr, usize) ptrforeign atof(*ubyte) doubleforeign atoi(*ubyte) intforeign atol(*ubyte) longforeign strtod(*ubyte, out **ubyte) doubleforeign strtol(*ubyte, out **ubyte, int) longforeign strtoul(*ubyte, out **ubyte, int) ulongforeign abs(int) intforeign labs(long) longforeign getenv(*ubyte) *ubyteforeign qsort(out ptr, usize, usize, ptr) voidforeign bsearch(ptr, ptr, usize, usize, func(ptr, ptr) int) ptrforeign rand() intforeign srand(uint) void
#default sys_cstdlib_rand_max 0
#default sys_cstdlib_show_rand_max_warning true