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

Definition   

#include <wctype.h>

wint_t towctrans(wint_t wc, wctrans_t desc);

towctrans maps the wide character wc using the mapping described by desc. The current setting of the LC_CTYPE category must be the same as during the towctrans call that returned the value desc.

The following two calls to towctrans behave the same as the calls for conversion to lowercase and uppercase indicated in the comments that follow:

towctrans(wc, wctrans("tolower"))

towctrans(wc, wctrans("toupper"))

/* towlower(wc) */

/* towupper(wc) */

Return val.

Mapped wide character

if successful.

Note

This version of the C runtime system only supports one-byte characters as wide character codes.

See also

tolower, toupper, towlower, towupper, wctrans