OpenBSD manual page server

Manual Page Search Parameters

WCTRANS(3) Library Functions Manual WCTRANS(3)

wctrans, wctrans_lget a character mapping identifier by name

#include <wctype.h>

wctrans_t
wctrans(const char *charmap);

wctrans_t
wctrans_l(const char *charmap, locale_t locale);

These functions return a character mapping identifier corresponding to the locale-specific character mapping name charmap. This identifier can be used in the subsequent calls of () or (), respectively.

The following names are defined in all locales:

tolower toupper

The function () uses the specified locale, whereas () uses the thread-specific locale set with uselocale(3), falling back to the global locale set with setlocale(3).

These functions return the character mapping identifier, or (wctrans_t)0 if charmap does not corresponding to a valid character mapping name.

newlocale(3), setlocale(3), towctrans(3), towlower(3), wctype(3)

The wctrans() function conforms to ISO/IEC 9899/AMD1:1995 (“ISO C90, Amendment 1”), and wctrans_l() to IEEE Std 1003.1-2008 (“POSIX.1”).

The wctrans() function has been available since OpenBSD 3.8, and wctrans_l() since OpenBSD 6.2.

September 5, 2017 OpenBSD-7.3