man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

towctrans(3C)

Name

towctrans - wide-character mapping

Synopsis

#include <wctype.h>

wint_t towctrans(wint_t wc, wctrans_t desc);

Description

The towctrans() function maps the wide character wc using the mapping described by desc. The current setting of the LC_CTYPE category shall be the same as during the call to wctrans() that returned the value desc.

The function call towctrans(wc, wctrans("tolower")) behaves the same as towlower(wc).

The function call towctrans(wc, wctrans("toupper")) behaves the same as towupper(wc).

Return Values

The towctrans() function returns the mapped value of wc, using the mapping described by desc; otherwise, it returns wc unchanged.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
CSI
Enabled
Interface Stability
Committed
MT-Level
MT-Safe with exceptions
Standard

See also

setlocale(3C), wctrans(3C), attributes(5), standards(5)