safec
3.2
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Functions | |
EXPORT errno_t | wcscpy_s (wchar_t *restrict dest, rsize_t dmax, const wchar_t *restrict src) |
The wcscpy_s function copies the string pointed to by src (including the terminating null character) into the array pointed to by dest. More... | |
The wcscpy_s
function copies the string pointed to by src
(including the terminating null character) into the array pointed to by dest.
With SAFECLIB_STR_NULL_SLACK
defined all elements following the terminating null character (if any) written by wcscpy_s
in the array of dmax
characters pointed to by dest
are nulled when wcscpy_s
returns.
[out] | dest | pointer to wide string that will be replaced by src. |
[in] | dmax | restricted maximum length of dest |
[in] | src | pointer to the wide string that will be copied to dest |
EOK | when successful operation, the wide characters in src were copied into dest and the result is null terminated. |
-ESNULLP | when dest or src is a NULL pointer |
-ESZEROL | when dmax = 0 |
-ESLEMAX | when dmax > RSIZE_MAX_WSTR |
-ESOVRLP | when buffers overlap |
-ESNOSPC | when dest < src |