Platform Package reference: Function EwAlloc()

Description of the function EwAlloc() available in Platform Packages for C compatible target systems. This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

void* EwAlloc( int aSize )

Parameters

aSize

Desired size of the new memory block in bytes.

Discussion

The function EwAlloc() reserves a new memory block with the given size aSize. The function returns a pointer to the memory block or NULL if there is no memory available. If not needed anymore, the memory block should be released again by invoking the function EwFree().