safec  3.2
Safe C Library - ISO TR24731 Bounds Checking Interface
memzero16_s.c File Reference
#include "safe_mem_lib.h"
+ Include dependency graph for memzero16_s.c:

Functions

EXPORT errno_t memzero16_s (uint16_t *dest, rsize_t len)
 Zeros len uint16_ts starting at dest. More...
 

Function Documentation

◆ memzero16_s()

EXPORT errno_t memzero16_s ( uint16_t *  dest,
rsize_t  len 
)

Zeros len uint16_ts starting at dest.

Remarks
EXTENSION TO ISO/IEC JTC1 SC22 WG14 N1172, Programming languages, environments and system software interfaces, Extensions to the C Library, Part I: Bounds-checking interfaces
Parameters
[out]destpointer to memory to be zeroed.
[in]lennumber of uint16_ts to be zeroed
Precondition
dest shall not be a null pointer.
len shall not be 0 nor greater than RSIZE_MAX_MEM16.
Returns
If there is a runtime constraint, the operation is not performed.
Return values
EOKwhen operation is successful
ESNULLPwhen dest is NULL POINTER
ESZEROLwhen len = ZERO
ESLEMAXwhen len > RSIZE_MAX_MEM16
See also
memzero_s(), memzero32_s()