PhABResExportCommon_t.alloc_mem()

A function exported by PhAB to allocate memory for the resource editor's copy of some data

Synopsis:

char* alloc_mem  ( int size )

Arguments:

size
The size, in bytes, of the buffer you want allocated.

Description:

This function is exported from PhAB in the PhABResExportCommon_t structure.

This function can be used by a resource editor to allocate memory for its copy of some data. This memory should be freed with the PhAB exported free_mem() function.

Returns:

A pointer to the allocated memory, or NULL if an error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

free_mem()PhABResExportCommon_t