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

Functions

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

Function Documentation

◆ strtolowercase_s()

EXPORT errno_t strtolowercase_s ( char *restrict  dest,
rsize_t  dmax 
)

Scans the string converting uppercase characters to lowercase, 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
See also
strtouppercase_s()