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 | memmove_s (void *dest, rsize_t dmax, const void *src, rsize_t smax) |
The memmove_s function copies smax bytes from the region pointed to by src into the region pointed to by dest. More... | |
errno_t memmove_s | ( | void * | dest, |
rsize_t | dmax, | ||
const void * | src, | ||
rsize_t | smax | ||
) |
The memmove_s function copies smax bytes from the region pointed to by src into the region pointed to by dest.
This copying takes place as if the smax bytes from the region pointed to by src are first copied into a temporary array of smax bytes that does not overlap the region pointed to by dest or src, and then the smax bytes from the temporary array are copied into the object region to by dest.
[out] | dest | pointer to the memory that will be replaced by src. |
[in] | dmax | maximum length of the resulting dest, in bytes |
[in] | src | pointer to the memory that will be copied to dest |
[in] | smax | maximum number bytes of src that can be copied |
EOK | when operation is successful |
ESNULLP | when dst/src is NULL POINTER |
ESZEROL | when dmax/smax = ZERO |
ESLEMAX | when dmax/smax > RSIZE_MAX_MEM |
ESNOSPC | when dmax < smax |
Definition at line 84 of file memmove_s.c.