Memory Allocation Routines


free, mt_free


Syntax

#include <malloc.h>
void free(void *ptr);
void mt_free(void *ptr);

Arguments

ptr      pointer to the beginning of the reserved area

Return Value

None

Description

Frees the memory block that was reserved by the InitHeap function. mt_free is the multi-thread compatible version of free. Interruption is inhibited when process 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