|
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 memcpy_s.c:Go to the source code of this file.
Functions | |
| errno_t | memcpy_s (void *restrict dest, rsize_t dmax, const void *restrict src, rsize_t smax) |
| This function copies at most smax bytes from src to dest, up to dmax. More... | |
| errno_t memcpy_s | ( | void *restrict | dest, |
| rsize_t | dmax, | ||
| const void *restrict | src, | ||
| rsize_t | smax | ||
| ) |
This function copies at most smax bytes from src to dest, up to dmax.
| [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 dest/src is NULL POINTER |
| ESZEROL | when dmax/smax = ZERO |
| ESLEMAX | when dmax/smax > RSIZE_MAX_MEM |
| ESNOSPC | when dmax < smax |
| ESOVRLP | when src memory overlaps dst |
Definition at line 79 of file memcpy_s.c.