Non-Confidential | ![]() | ARM 100073_0608_00_en | ||
| ||||
Home > The C and C++ Library Functions Reference > __user_heap_extend() |
Defined in rt_misc.h, the __user_heap_extend()
function can be defined to return extra blocks of memory, separate from the initial one, to be used by the heap.
If defined, this function must return the size and base address of an eight-byte aligned heap extension block.
extern size_t
__user_heap_extend(int
var0
,void
**base
,size_t
requested_size
);
There is no default implementation of this function. If you define this function, it must have the following characteristics:
This function places a pointer to a block of at least the requested size in *base and returns the size of the block. 0 is returned if no such block can be returned, in which case the value stored at *base is never used.