|
safec
3.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Include dependency graph for strcpyfld_s.c:Functions | |
| EXPORT 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... | |
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 = 0. Before C11 also with slen = 0 |
| ESLEMAX | when dmax > RSIZE_MAX_STR |
| ESOVRLP | when strings overlap |
| ESNOSPC | when dmax < slen |