Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PhABResExportCommon_t.alloc_mem

PhABResExportCommon_t.alloc_mem

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

resource editor's copy of some data" />

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