safec
3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Functions | |
EXPORT errno_t | strcpyfldin_s (char *dest, rsize_t dmax, const char *src, rsize_t slen) |
The strcpyfldin_s function copies at most slen characters from the null terminated string pointed to by src into the fixed character array pointed to by dest. More... | |
The strcpyfldin_s function copies at most slen characters from the null terminated string pointed to by src into the fixed character array pointed to by dest.
The copy operation stops on the null character if encountered and then continues to fill the field with nulls up to dmax characters.
[out] | dest | pointer to string that will be replaced by src. |
[in] | dmax | restricted maximum length of dest |
[in] | src | pointer to the null terminated string that will be copied into the character array pointed to by 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 |