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.