|
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"
Include dependency graph for memset16_s.c:Go to the source code of this file.
Functions | |
| errno_t | memset16_s (uint16_t *dest, rsize_t smax, uint16_t value, rsize_t n) |
| Sets the first n uint16_t values starting at dest to the specified value, but maximal smax bytes. More... | |
| errno_t memset16_s | ( | uint16_t * | dest, |
| rsize_t | smax, | ||
| uint16_t | value, | ||
| rsize_t | n | ||
| ) |
Sets the first n uint16_t values starting at dest to the specified value, but maximal smax bytes.
| [out] | dest | pointer to memory that will be set to the value |
| [in] | smax | 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 |
| ESZEROL | when n = ZERO |
| ESLEMAX | when smax or n > RSIZE_MAX_MEM |
| ESNOSPC | when smax/2 < n |
Definition at line 74 of file memset16_s.c.