RETURN VALUES
The towctrans function returns the transliterated character if successful, otherwise it returns the character unchanged and sets errno. The wctrans function returns non-zero if successful, otherwise it returns zero and sets errno.
EXAMPLES
Reimplement towupper in terms of towctrans and wctrans:
wint_t
mytowupper(wint_t wc)
{
return (towctrans(wc, wctrans("toupper")));
}
ERRORS
The towctrans function will fail if: