wconv(3I) manual page
Table of Contents
wconv, towupper, towlower - Process Code character conversion macros
cc [ flag ... ] file ... -lw [ library ... ]
#include <widec.h>
#include <wctype.h>
int towlower(int c);
int towupper(int c);
MT-Safe with exceptions
These macros perform simple case conversions
on Latin characters in Process Code, wchar_t, from the primary and supplementary
codesets, by table lookup.
- towupper(c)
- converts the lower-case Latin character
c to its upper-case equivalent. If c is not a lower-case Latin character
c is returned.
- towlower(c)
- converts the upper-case character c to its lower-case
equivalent. If c is not an upper-case Latin character c is returned.
ctype(3C)
, setlocale(3C)
, iswalpha(3I)
, stdio(3S)
towupper and
towlower can be used safely in a multi-thread application, as long as setlocale(3C)
is not being called to change the locale.
Table of Contents