towupper(3)

towupper3

Lower case to upper case letter conversion (wide character version)

Usage

#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);

Library

Standard C Library (libc, -lc)

Overview

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

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

Return values

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.

Releases

145 releases since Mac OS X 10.3; the text changed 2 times.

  1. 10.3–10.4.11
  2. 10.5–10.6.8
  3. 10.7–26.5

Standards

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

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.