safec  3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
strtouppercase_s.c File Reference
#include "safe_str_lib.h"
+ Include dependency graph for strtouppercase_s.c:

Functions

EXPORT errno_t strtouppercase_s (char *dest, rsize_t dmax)
 Scans the string converting lowercase characters to uppercase, leaving all other characters unchanged. More...
 

Function Documentation

◆ strtouppercase_s()

EXPORT errno_t strtouppercase_s ( char *  dest,
rsize_t  dmax 
)

Scans the string converting lowercase characters to uppercase, leaving all other characters unchanged.

The scanning stops at the first null or after dmax characters.

Remarks
EXTENSION TO ISO/IEC TR 24731, Programming languages, environments and system software interfaces, Extensions to the C Library, Part I: Bounds-checking interfaces
Parameters
[out]destpointer to string
[in]dmaxmaximum length of string
Precondition
dest shall not be a null pointer.
dmax shall not equal zero.
dmax shall not be greater than RSIZE_MAX_STR.
Return values
EOKwhen successful operation
ESNULLPwhen dest is NULL pointer
ESZEROLwhen dmax = 0
ESLEMAXwhen dmax > RSIZE_MAX_STR

ALSO SEE strtolowercase_s()