safec
3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Functions | |
EXPORT errno_t | wcscat_s (wchar_t *restrict dest, rsize_t dmax, const wchar_t *restrict src) |
The wcscat_s function appends a copy of the wide string pointed to by src (including the terminating null character) to the end of the wide string pointed to by dest. More... | |
EXPORT errno_t wcscat_s | ( | wchar_t *restrict | dest, |
rsize_t | dmax, | ||
const wchar_t *restrict | src | ||
) |
The wcscat_s function appends a copy of the wide string pointed to by src (including the terminating null character) to the end of the wide string pointed to by dest.
The initial wide character from src overwrites the null character at the end of dest.
All elements following the terminating null wide character (if any) written by wcscat_s in the array of dmax characters pointed to by dest take unspeciļ¬ed values when wcscat_s returns. With SAFECLIB_STR_NULL_SLACK defined the rest is cleared with 0.
[out] | dest | pointer to wide string that will be extended by src if dmax allows. The wide string is null terminated. If the resulting concatenated wide string is less than dmax, the remaining slack space is nulled. |
[in] | dmax | restricted maximum length of the resulting dest, including the null |
[in] | src | pointer to the wide string that will be concatenaed to string dest |
EOK | when successful operation, all the wide characters from src were appended to dest and the result in dest is null terminated. |
ESNULLP | when dest or src is a NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_WSTR |
ESUNTERM | when dest not terminated in the first dmax wide characters |
ESOVRLP | when src overlaps with dest |