1.2.5.2.14 TCPIP_MAC_HEAP_CallocF Type

C

typedef void* (* TCPIP_MAC_HEAP_CallocF)(TCPIP_MAC_HEAP_HANDLE heapH, size_t nElems, size_t elemSize);

Description

Memory Allocation Function: typedef void* (*TCPIP_MAC_HEAP_CallocF)(TCPIP_MAC_HEAP_HANDLE heapH, size_t nElems, size_t elemSize);

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

Members

MembersDescription
heapHHeap handle to be used in call.
nElemsNumber of identical elements requested.
elemSizeSize of one element, in bytes.

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.