Manual Page Result
0
Command: towupper | Section: 3 | Source: Digital UNIX | File: towupper.3.gz
towlower(3) Library Functions Manual towlower(3)
NAME
towlower, towupper - Convert uppercase and lowercase wide characters
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <wctype.h>
wint_t towlower ( wint_t wc);
wint_t towupper ( wint_t wc);
The XPG4 and XPG4-UNIX standards specify #include <wchar.h> in place of
#include <wctype.h>, which is currently specified by the ISO C stan-
dard. Both #include statements are supported.
STANDARDS
Interfaces documented on this reference page conform to industry stan-
dards as follows:
towlower(), towupper(): ISO C, XPG4
Refer to the standards(5) reference page for more information about in-
dustry standards and associated tags.
PARAMETERS
Specifies the wide character to convert.
DESCRIPTION
The towlower() function converts the uppercase wide character specified
by the wc parameter into the corresponding lowercase wide character.
The towupper() function converts the lowercase wide character specified
by the wc parameter into the corresponding uppercase wide character.
The behavior of the towlower() and towupper() functions are affected by
the LC_CTYPE category of the program's locale.
[Digital] In a locale where case conversion information is not de-
fined, these functions determine the case of characters according to
the rules of the C locale.
RETURN VALUES
In the towlower() function, if the wc parameter contains an uppercase
wide character that has a corresponding lowercase wide character, that
wide character is returned. Otherwise, the wc parameter is returned un-
changed.
In the towupper() function, if the wc parameter contains a lowercase
wide character that has a corresponding uppercase wide character, that
wide character is returned. Otherwise, the wc parameter is returned un-
changed.
RELATED INFORMATION
Functions: conv(3), setlocale(3), towctrans(3), wctrans(3)
Standards: standards(5) delim off
towlower(3)