MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > f) Memory Functions > leVariableHeap_Alloc Function
MPLAB® Harmony Graphics Suite
leVariableHeap_Alloc Function

Allocates a block from a variable heap. 

Use the LE_MALLOC macro to automatically differentiate between this function and its debug counterpart.

C
void* leVariableHeap_Alloc(
    leVariableHeap* heap, 
    uint32_t size
);
Parameters
Parameters 
Description 
leVariableHeap* heap 
pointer to the heap object 
uint32_t size 
the size of block to allocate 
Returns

leResult

MPLAB® Harmony Graphics Suite