Skip to content

sys cstdlib

IsaacShelton edited this page Nov 13, 2022 · 5 revisions

sys/cstdlib

sys/cstdlib.adept contains symbols from <stdlib.h>.

Constants

define RAND_MAX = /* ??? */

Functions

  • 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

Settings

#default sys_cstdlib_rand_max 0
#default sys_cstdlib_show_rand_max_warning true
Clone this wiki locally