Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

towctrans - map wide characters

&pagelevel(4)&pagelevel

Syntax

#include <wctype.h>

wint_t towctrans(wint_t wc, wctrans_t desc);

Description towctrans() transforms the wide character wc according to the specification desc. The

current value of the category LC_CTYPE must be the same as the one valid for the
towctrans() call that returned the value desc.

The two following calls to towctrans() have the same affect as the calls for converting to
small or capital letters shown in the corresponding comments:

towctrans(wc, wctrans("tolower"))

towctrans(wc, wctrans("toupper"))

/* towlower(wc) */

/* towupper(wc) */

Return val.

transformed wide character

if successful.

Notes

In this version of the C runtime system, only 1 byte characters are supported as wide
characters.

See also

tolower(), toupper(), towlower(), towupper(), wctrans()