Standards / Extensions | C or C++ | Dependencies |
---|---|---|
POSIX.1 |
both |
#include <wctype.h>
wint_t towlower(wint_t wc);
wint_t towupper(wint_t wc);
Converts wc to the corresponding lowercase letter. The towupper() function converts wc to the corresponding uppercase letter.
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.