Convert characters (esp. transliteration to uppercase or lowercase)
#include <wctype.h>
wint_t towctrans( wint_t wc,
wctrans_t category);
libc
The towctrans() function transliterates wc using the mapping described by category. The following functions are equivalent:
| Function | Equivalent wctrans() Call |
|---|---|
| towlower( wc ) | towctrans( wc, wctrans("tolower") ) |
| towupper( wc ) | towctrans( wc, wctrans("toupper") ) |
The corresponding transliterated wide character when the argument is valid; otherwise, the original wide character is returned.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |
"Character manipulation functions" and "Wide-character functions" in Library Reference Summary