safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"
#include "safe_str_constraint.h"
#include "safe_str_lib.h"
Go to the source code of this file.
Functions | |
errno_t | strcpyfld_s (char *dest, rsize_t dmax, const char *src, rsize_t slen) |
The strcpyfld_s function copies slen characters from the character array pointed to by src into the character array pointed to by dest. More... | |
errno_t strcpyfld_s | ( | char * | dest, |
rsize_t | dmax, | ||
const char * | src, | ||
rsize_t | slen | ||
) |
The strcpyfld_s function copies slen characters from the character array pointed to by src into the character array pointed to by dest.
The copy operation does not stop on the null character as the function copies slen characters.
[out] | dest | pointer to string that will be replaced by src. |
[in] | dmax | restricted maximum length of dest |
[in] | src | pointer to the character array that will be copied to dest |
[in] | slen | maximum length of src |
EOK | when successful operation |
ESNULLP | when dest/src is NULL pointer |
ESZEROL | when dmax/slen = 0 |
ESLEMAX | when dmax > RSIZE_MAX_STR |
ESOVRLP | when strings overlap |
ESNOSPC | when dmax < slen |
Definition at line 76 of file strcpyfld_s.c.