### _uopen -- Open Heap for Use

Format

>     #include <umalloc.h>
>     int _uopen(Heap_t heap);

Language Level: Extension
_uopen allows the current process to use the heap you specify. If the heap is shared, you must call _uopen in each process that will allocate or free from the heap.

Return Value
If successful, _uopen returns 0. A nonzero return code indicates failure. Passing _uopen a heap that is not valid results in undefined behavior.

Example

Example

Memory Management

_uaddmem -- Add Memory to a Heap
_uclose -- Close Heap from Use
_ucreate -- Create a Memory Heap
<umalloc.h>