Name

towupper

Synopsis

Converts a lowercase wide character to uppercase

#include <wctype.h>
wint_ttowupper( wint_t wc );

The towupper() function is like toupper() in all respects, except that it operates on wide characters. An uppercase wide character is one for which iswupper() returns true in the current locale; a lowercase wide character is one for which iswlower() returns true.

Example

See the example for mbrtowc() in this chapter.

Get C in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.