Creates memory segments of the specified number of bytes.
#include <stdlib.h> void *sbrk (unsigned segsize);
segsize
For flat model applications, sbrk uses the system call AllocateRtMemory. You should use FreeRtMemory, DeleteRtMemoryHandle to delete segments acquired by sbrk.
To return the created segment to the heap using free or realloc, use malloc to get memory instead of sbrk.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h | stdlib.h | clib.lib |
AllocateRtMemory, DeleteRtMemoryHandle, free, FreeRtMemory, malloc, realloc