Contents|Index|Previous|Next

Memory support

The following routines are for dynamic memory allocation.

sbrk()
The functions, malloc(), calloc(), and realloc() all call sbrk() at their lowest levels. sbrk() returns a pointer to the last memory address your application used before more memory was allocated.

caddr_t
Defined elsewhere as char *.

RAMSIZE
A compile-time option that moves a pointer to heap memory and checks for the upper limit.