Mem_Clr()

Clears a memory buffer. In other words, set all octets in the memory buffer to a value of ‘0’.

Files

lib_mem.h/lib_mem.c

Prototype

          void  Mem_Clr (void        *pmem,
                         CPU_SIZE_T   size);

Arguments

pmem

Pointer to the memory buffer to be clear.

size

Number of memory buffer octets to clear.

Returned Value

None.

Required Configuration

None.

Notes / Warnings

Zero-sized clears allowed.

Example Usage

          CPU_CHAR  AppBuf[10];
           
          Mem_Clr((void     *)&AppBuf[0],
                  (CPU_SIZE_T) sizeof(AppBuf));