safec
3.2
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Functions | |
EXPORT errno_t | wcsnset_s (wchar_t *restrict dest, rsize_t dmax, wchar_t value, rsize_t n) |
Sets maximal n wide characters of dest to a wide character value, but not the final NULL character. More... | |
Sets maximal n wide characters of dest to a wide character value, but not the final NULL character.
With SAFECLIB_STR_NULL_SLACK defined all elements following the terminating null character (if any) written in the array of dmax wide characters pointed to by dest are nulled.
[out] | dest | wide string that will be set. |
[in] | dmax | restricted maximum length of dest |
[in] | value | wide character value to write |
[in] | n | number of wide characters to be written |
EOK | when successful |
ESNULLP | when dest is NULL pointer |
ESZEROL | when dmax = 0 |
ESLEMAX | when dmax > RSIZE_MAX_WSTR or value > max wchar_t |
ESNOSPC | when n > dmax |