| Description | | The free function returns a memory block to the memory pool. The p argument points to a memory block that was previously allocated with the calloc, malloc, or realloc functions. Once it has been returned to the memory pool by the free function, the block is available for subsequent allocation. If p is a null pointer, it is ignored. Note - Before calling this function your program must invoke the init_mempool function to initialize the memory management routines and provides the starting address and size of the memory pool.
- Source code for this routine is provide in the LIB folder. You may modify the source to customize this function for your particular hardware environment.
- Pointer arguments and return values are far in Small, Medium, Compact, and Large Memory Models; huge in HCompact and HLarge Memory Models; and xhuge in the XLarge Memory Model. This function is not supported in the Tiny Memory Model.
|