Mem_DynPoolBlkFree()
Frees memory block, making it available for future use.
Files
lib_mem.h/lib_mem.c
Prototype
void Mem_DynPoolBlkFree (MEM_DYN_POOL *p_pool, void *p_blk, LIB_ERR *p_err);
Arguments
p_pool
Pointer to pool data.
p_blk
Pointer to first byte of memory block.
p_err
Pointer to variable that will receive the return error code from this function.
LIB_MEM_ERR_NONE
LIB_MEM_ERR_NULL_PTR
LIB_MEM_ERR_POOL_FULL
Returned Value
None.
Required Configuration
None.
Notes / Warnings
- A usage example of this function is available on Dynamic Memory Pools page.