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. This is the debug version of this function and requires additional parameters. 

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

C
void* leVariableHeap_Alloc(
    leVariableHeap* heap, 
    uint32_t size, 
    uint32_t lineNum, 
    const char* funcName, 
    const char* fileName
);
Parameters
Parameters 
Description 
leVariableHeap* heap 
pointer to the heap object 
uint32_t size 
the size 
uint32_t lineNum 
the file line number where this allocation occured 
const char* funcName 
the function name where this allocation occured 
const char* fileName 
the file name where this allocation occured 
Returns

leResult

MPLAB® Harmony Graphics Suite