Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lib_mem.h/lib_mem.c

Prototype

Code Block
languagecpp
          void  Mem_Clr (void        *pmem,
                         CPU_SIZE_T   size);


Arguments

pmem

Pointer to the memory buffer to be clear.

...

Zero-sized clears allowed.

Example Usage

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