/
Mem_SegClr()
Mem_SegClr()
Clears a memory segment.
Files
lib_mem.h/lib_mem.c
Prototype
void Mem_SegClr (MEM_SEG *p_seg, LIB_ERR *p_err);
Arguments
p_seg
Pointer to segment data. Must be allocated by caller.
p_err
Pointer to variable that will receive the return error code from this function.
LIB_MEM_ERR_NONE
LIB_MEM_ERR_NULL_PTR
Returned Value
None.
Required Configuration
None.
Notes / Warnings
- This function must be used with extreme caution. It must only be called on memory segments that are no longer used.
- This function is disabled when debug mode is enabled to avoid heap memory leaks.
Related content
Mem_Clr()
Mem_Clr()
More like this
Mem_PoolClr()
Mem_PoolClr()
More like this
Mem_SegAlloc()
Mem_SegAlloc()
More like this
Mem_SegCreate()
Mem_SegCreate()
More like this
Mem_SegAllocExt()
Mem_SegAllocExt()
More like this
Mem_SegGetSizeRem()
Mem_SegGetSizeRem()
More like this