|
NAMEtowctrans , wctrans —
wide character mapping functions
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wctype.h>
wint_t
wctrans_t
DESCRIPTIONThewctrans () function returns a value of type
wctrans_t which represents the requested wide character
mapping operation and may be used as the second argument for calls to
towctrans ().
The following character mapping names are recognised:
The RETURN VALUESThetowctrans () function returns the transliterated
character if successful, otherwise it returns the character unchanged and sets
errno.
The EXAMPLESReimplementtowupper () in terms of
towctrans () and wctrans ():
wint_t mytowupper(wint_t wc) { return (towctrans(wc, wctrans("toupper"))); } ERRORSThetowctrans () function will fail if:
The
SEE ALSOtolower(3), toupper(3), wctype(3)STANDARDSThetowctrans () and wctrans ()
functions conform to IEEE Std 1003.1-2001
(“POSIX.1”).
HISTORYThetowctrans () and wctrans ()
functions first appeared in FreeBSD 5.0.
Visit the GSP FreeBSD Man Page Interface. |