Initial import from FreeBSD RELENG_4:
[games.git] / lib / libcr / locale / ctype.3
1 .\" Copyright (c) 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)ctype.3     8.1 (Berkeley) 6/4/93
33 .\" $FreeBSD: src/lib/libc/locale/ctype.3,v 1.6.2.3 2001/12/14 18:33:54 ru Exp $
34 .\"
35 .Dd June 4, 1993
36 .Dt CTYPE 3
37 .Os
38 .Sh NAME
39 .Nm isalnum ,
40 .Nm isalpha ,
41 .Nm isascii ,
42 .Nm isblank ,
43 .Nm iscntrl ,
44 .Nm isdigit ,
45 .Nm isgraph ,
46 .Nm ishexnumber ,
47 .Nm isideogram ,
48 .Nm islower ,
49 .Nm isnumber ,
50 .Nm isphonogram ,
51 .Nm isprint ,
52 .Nm ispunct ,
53 .Nm isrune ,
54 .Nm isspace ,
55 .Nm isspecial ,
56 .Nm isupper ,
57 .Nm isxdigit ,
58 .Nm toascii ,
59 .Nm tolower ,
60 .Nm toupper
61 .Nd character classification macros
62 .Sh LIBRARY
63 .Lb libc
64 .Sh SYNOPSIS
65 .In ctype.h
66 .Ft int
67 .Fn isalnum "int c"
68 .Ft int
69 .Fn isalpha "int c"
70 .Ft int
71 .Fn isascii "int c"
72 .Ft int
73 .Fn iscntrl "int c"
74 .Ft int
75 .Fn isdigit "int c"
76 .Ft int
77 .Fn isgraph "int c"
78 .Ft int
79 .Fn ishexnumber "int c"
80 .Ft int
81 .Fn isideogram "int c"
82 .Ft int
83 .Fn islower "int c"
84 .Ft int
85 .Fn isnumber "int c"
86 .Ft int
87 .Fn isphonogram "int c"
88 .Ft int
89 .Fn isspecial "int c"
90 .Ft int
91 .Fn isprint "int c"
92 .Ft int
93 .Fn ispunct "int c"
94 .Ft int
95 .Fn isrune "int c"
96 .Ft int
97 .Fn isspace "int c"
98 .Ft int
99 .Fn isupper "int c"
100 .Ft int
101 .Fn isxdigit "int c"
102 .Ft int
103 .Fn toascii "int c"
104 .Ft int
105 .Fn tolower "int c"
106 .Ft int
107 .Fn toupper "int c"
108 .Sh DESCRIPTION
109 The above functions perform character tests and conversions on the integer
110 .Ar c .
111 They are available as macros, defined in the include file
112 .Aq Pa ctype.h ,
113 or as true functions in the C library.
114 See the specific manual pages for more information.
115 .Sh SEE ALSO
116 .Xr isalnum 3 ,
117 .Xr isalpha 3 ,
118 .Xr isascii 3 ,
119 .Xr isblank 3 ,
120 .Xr iscntrl 3 ,
121 .Xr isdigit 3 ,
122 .Xr isgraph 3 ,
123 .Xr islower 3 ,
124 .Xr isprint 3 ,
125 .Xr ispunct 3 ,
126 .Xr isspace 3 ,
127 .Xr isupper 3 ,
128 .Xr isxdigit 3 ,
129 .Xr toascii 3 ,
130 .Xr tolower 3 ,
131 .Xr toupper 3 ,
132 .Xr ascii 7
133 .Sh STANDARDS
134 These functions, except for
135 .Fn digittoint ,
136 .Fn isascii ,
137 .Fn isblank ,
138 .Fn ishexnumber ,
139 .Fn isideogram ,
140 .Fn isnumber ,
141 .Fn isphonogram ,
142 .Fn isrune ,
143 .Fn isspecial
144 and
145 .Fn toascii ,
146 conform to
147 .St -isoC .