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

Allocates a block from a fixed 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* leFixedHeap_Alloc(
    leFixedHeap* heap, 
    uint32_t lineNum, 
    const char* funcName, 
    const char* fileName
);
Parameters
Parameters 
Description 
leFixedHeap* heap 
pointer to the heap object 
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