Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Clears a memory segment.

Files

lib_mem.h/lib_mem.c

Prototype

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

  1. This function must be used with extreme caution. It must only be called on memory segments that are no longer used.
  2. This function is disabled when debug mode is enabled to avoid heap memory leaks.
  • No labels