Jump to main content

##

# 1.2.5.2.19 TCPIP_MAC_HEAP_MallocF Type

## C

    typedef void* (* TCPIP_MAC_HEAP_MallocF)(TCPIP_MAC_HEAP_HANDLE heapH, size_t nBytes);

## Description

Memory Allocation Function: typedef void* (*TCPIP_MAC_HEAP_MallocF)(TCPIP_MAC_HEAP_HANDLE heapH, size_t nBytes);

This malloc style function is used by the MAC to allocate memory.

## Returns

- Valid pointer - If the allocation request succeeded.
- 0 - If the allocation request failed.

## Remarks

The debug version adds the module identifier and source file line number.