1TOUPPER(3) Linux Programmer's Manual TOUPPER(3)
2
3
4
6 toupper, tolower - convert letter to upper or lower case
7
9 #include <ctype.h>
10
11 int toupper(int c);
12 int tolower(int c);
13
15 toupper() converts the letter c to upper case, if possible.
16
17 tolower() converts the letter c to lower case, if possible.
18
19 If c is not an unsigned char value, or EOF, the behavior of these func‐
20 tions is undefined.
21
23 The value returned is that of the converted letter, or c if the conver‐
24 sion was not possible.
25
27 C89, C99, 4.3BSD.
28
30 The details of what constitutes an uppercase or lowercase letter depend
31 on the current locale. For example, the default "C" locale does not
32 know about umlauts, so no conversion is done for them.
33
34 In some non-English locales, there are lowercase letters with no corre‐
35 sponding uppercase equivalent; the German sharp s is one example.
36
38 isalpha(3), setlocale(3), towlower(3), towupper(3), locale(7)
39
41 This page is part of release 3.22 of the Linux man-pages project. A
42 description of the project, and information about reporting bugs, can
43 be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47GNU 1993-04-04 TOUPPER(3)