safec
3.2
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_str_lib.h"
Functions | |
EXPORT errno_t | wcsupr_s (wchar_t *restrict src, rsize_t slen) |
Scans the string converting lowercase characters to uppercase, leaving all other characters unchanged. More... | |
Scans the string converting lowercase characters to uppercase, leaving all other characters unchanged.
The scanning stops at the first null or after slen characters. The conversion is determined by the LC_CTYPE category setting of the locale. Other characters are not affected. It converts only single chars via towupper()
. It returns a pointer to the altered string. Because the modification is done in place, the pointer returned is the same as the pointer passed as the input argument.
[out] | src | wide string |
[in] | slen | maximum length of string |
EOK | on successful operation |
ESNULLP | when src is NULL pointer |
ESZEROL | when slen = 0 before C11. |
ESLEMAX | when slen > RSIZE_MAX_WSTR |