safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"
#include "safe_mem_constraint.h"
#include "mem_primitives_lib.h"
#include "safe_mem_lib.h"
Go to the source code of this file.
Functions | |
errno_t | memset_s (void *dest, rsize_t dmax, uint8_t value, rsize_t n) |
Sets the first n bytes starting at dest to the specified value, but maximal dmax bytes. More... | |
errno_t memset_s | ( | void * | dest, |
rsize_t | dmax, | ||
uint8_t | value, | ||
rsize_t | n | ||
) |
Sets the first n bytes starting at dest to the specified value, but maximal dmax bytes.
[out] | dest | pointer to memory that will be set to the value |
[in] | dmax | maximum number of bytes to be written |
[in] | value | byte value to be written |
[in] | n | number of bytes to be set |
EOK | when operation is successful |
ESNULLP | when dest is NULL POINTER (EINVAL with C11) |
ESZEROL | when n = ZERO (unless C11) |
ESLEMAX | when dmax/n > RSIZE_MAX_MEM |
ESNOSPC | when dmax < n |
Definition at line 85 of file memset_s.c.