towlower(), towupper() — Convert wide character case

Standards

Standards / Extensions C or C++ Dependencies

POSIX.1
XPG4
XPG4.2
Single UNIX Specification, Version 3

both  

Format

#include <wctype.h>

wint_t towlower(wint_t wc);
wint_t towupper(wint_t wc);

General description

Converts wc to the corresponding lowercase letter. The towupper() function converts wc to the corresponding uppercase letter.

Returned value

If wc is a wide character for which iswupper() (or iswlower()) is true and there is a corresponding wide character for which iswlower() (or iswupper()) is true, towlower() (or towupper()) returns the corresponding wide character; otherwise, wc is returned unchanged.

Related information