OSDN Git Service

(split) LDP: Update original to LDP v3.50.
[linuxjm/LDP_man-pages.git] / original / man3 / toupper.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified Sat Jul 24 17:45:39 1993 by Rik Faith (faith@cs.unc.edu)
26 .\" Modified 2000-02-13 by Nicolás Lichtmaier <nick@debian.org>
27 .TH TOUPPER 3  1993-04-04 "GNU" "Linux Programmer's Manual"
28 .SH NAME
29 toupper, tolower \- convert letter to upper or lower case
30 .SH SYNOPSIS
31 .nf
32 .B #include <ctype.h>
33 .sp
34 .BI "int toupper(int " "c" );
35 .br
36 .BI "int tolower(int " "c" );
37 .fi
38 .SH DESCRIPTION
39 .BR toupper ()
40 converts the letter
41 .I c
42 to upper case, if possible.
43 .PP
44 .BR tolower ()
45 converts the letter
46 .I c
47 to lower case, if possible.
48 .PP
49 If
50 .I c
51 is not an
52 .I "unsigned char"
53 value, or
54 .BR EOF ,
55 the behavior of these functions
56 is undefined.
57 .SH RETURN VALUE
58 The value returned is that of the converted letter, or
59 .I c
60 if the conversion was not possible.
61 .SH CONFORMING TO
62 C89, C99, 4.3BSD.
63 .SH BUGS
64 The details of what constitutes an uppercase or lowercase letter depend
65 on the current locale.
66 For example, the default
67 .B """C"""
68 locale does not know about umlauts, so no conversion is done for them.
69 .PP
70 In some non-English locales, there are lowercase letters with no
71 corresponding uppercase equivalent; the German sharp s is one
72 example.
73 .SH SEE ALSO
74 .BR isalpha (3),
75 .BR setlocale (3),
76 .BR towlower (3),
77 .BR towupper (3),
78 .BR locale (7)