|
safec
3.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_mem_lib.h"
Include dependency graph for memmove32_s.c:Functions | |
| EXPORT errno_t | memmove32_s (uint32_t *dest, rsize_t dmax, const uint32_t *src, rsize_t smax) |
| The memmove32_s function copies smax uint32_ts from the region pointed to by src into the region pointed to by dest. More... | |
The memmove32_s function copies smax uint32_ts from the region pointed to by src into the region pointed to by dest.
This copying takes place as if the smax uint32_ts from the region pointed to by src are first copied into a temporary array of smax uint32_ts that does not overlap the regions pointed to by dest or src, and then the smax uint32_ts from the temporary array are copied into the region pointed 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 = ZERO. Before C11 also with smax = ZERO |
| ESLEMAX | when dmax/smax > RSIZE_MAX_MEM |
| ESNOSPC | when dmax < smax |