Syntax
#include <malloc.h>
void *memalign(int alignment, size_t size);
void *mt_memalign(int alignment, size_t size)
Arguments
alignment alignment value
size size to be reserved
Return Value
The pointer to the beginning of the reserved area or NULL if it fails to reserve an area
Description
Reserves a memory block of more than size in the area reserved using the InitHeap function from the area for which alignment was adjusted using alignment.
If the alignment value is less than 16, the process is performed assuming the alignment value is 16.
mt_memalign is the multi-thread compatible version of memalign. Interruption is inhibited when processing is being performed to prevent malfunction if used by more than one thread.
Revision History
6/1/99 Added explanation of the multi-thread version