Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

towlower_l(3C)

Name

towlower, towlower_l - transliterate uppercase wide-character code to lowercase

Synopsis

#include <wchar.h>

wint_t towlower(wint_t wc);
wint_t towlower_l(wint_t wc, locale_t locale);

Description

The towlower() function has as a domain a type wint_t, the value of which must be a character representable as a wchar_t, and must be a wide-character code corresponding to a valid character in the current locale or the value of WEOF. If the argument has any other value, the argument is returned unchanged. If the argument of towlower() represents an uppercase wide-character code, and there exists a corresponding lowercase wide-character code (as defined by character type information in the program locale category LC_CTYPE), the result is the corresponding lowercase wide-character code. All other arguments in the domain are returned unchanged.

The towlower_l() function is equivalent to the towlower() function, except that the locale data used is from the locale represented by locale.

The behavior is undefined if the locale argument to towlower_l() is the special locale object LC_GLOBAL_LOCALE or is not a valid locale object handle.

Return Values

On successful completion, towlower() and towlower_l() return the lowercase letter corresponding to the argument passed. Otherwise, they return the argument unchanged.

Errors

No errors are defined.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
CSI
Enabled
Interface Stability
Standard
MT-Level
MT-Safe

See Also

duplocale(3C), freelocale(3C), iswalpha(3C), newlocale(3C), setlocale(3C), towupper(3C), uselocale(3C), attributes(7), standards(7)