TOWUPPER(3) Library Functions Manual TOWUPPER(3)

towupper, towupper_llower case to upper case letter conversion (wide character version)

Standard C Library (libc, -lc)

#include <wctype.h>

wint_t
towupper(wint_t wc);

#include <wctype.h>
#include <xlocale.h>

wint_t
towupper_l(wint_t wc, locale_t loc);

The () function converts a lower-case letter to the corresponding upper-case letter.

Although the () function uses the current locale, the () function may be passed a locale directly. See xlocale(3) for more information.

If the argument is a lower-case letter, the towupper() function returns the corresponding upper-case letter if there is one; otherwise, the argument is returned unchanged.

iswupper(3), toupper(3), towlower(3), wctrans(3), xlocale(3)

The towupper() function conforms to ISO/IEC 9899:1999 (“ISO C99”).

October 3, 2002 macOS 15.2