]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libc/locale/ctype.3
unbound: Import upstream 0ee44ef3 when ENOBUFS is returned
[FreeBSD/FreeBSD.git] / lib / libc / 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. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)ctype.3     8.1 (Berkeley) 6/4/93
29 .\"
30 .Dd April 3, 2022
31 .Dt CTYPE 3
32 .Os
33 .Sh NAME
34 .Nm digittoint ,
35 .Nm isalnum ,
36 .Nm isalpha ,
37 .Nm isascii ,
38 .Nm isblank ,
39 .Nm iscntrl ,
40 .Nm isdigit ,
41 .Nm isgraph ,
42 .Nm ishexnumber ,
43 .Nm isideogram ,
44 .Nm islower ,
45 .Nm isnumber ,
46 .Nm isphonogram ,
47 .Nm isprint ,
48 .Nm ispunct ,
49 .Nm isrune ,
50 .Nm isspace ,
51 .Nm isspecial ,
52 .Nm isupper ,
53 .Nm isxdigit ,
54 .Nm toascii ,
55 .Nm tolower ,
56 .Nm toupper
57 .Nd character classification functions
58 .Sh LIBRARY
59 .Lb libc
60 .Sh SYNOPSIS
61 .In ctype.h
62 .Ft int
63 .Fn digittoint "int c"
64 .Ft int
65 .Fn isalnum "int c"
66 .Ft int
67 .Fn isalpha "int c"
68 .Ft int
69 .Fn isascii "int c"
70 .Ft int
71 .Fn iscntrl "int c"
72 .Ft int
73 .Fn isdigit "int c"
74 .Ft int
75 .Fn isgraph "int c"
76 .Ft int
77 .Fn ishexnumber "int c"
78 .Ft int
79 .Fn isideogram "int c"
80 .Ft int
81 .Fn islower "int c"
82 .Ft int
83 .Fn isnumber "int c"
84 .Ft int
85 .Fn isphonogram "int c"
86 .Ft int
87 .Fn isspecial "int c"
88 .Ft int
89 .Fn isprint "int c"
90 .Ft int
91 .Fn ispunct "int c"
92 .Ft int
93 .Fn isrune "int c"
94 .Ft int
95 .Fn isspace "int c"
96 .Ft int
97 .Fn isupper "int c"
98 .Ft int
99 .Fn isxdigit "int c"
100 .Ft int
101 .Fn toascii "int c"
102 .Ft int
103 .Fn tolower "int c"
104 .Ft int
105 .Fn toupper "int c"
106 .Sh DESCRIPTION
107 The above functions perform character tests and conversions on the integer
108 .Fa c .
109 They are available as macros, defined in the include file
110 .In ctype.h ,
111 or as true functions in the C library.
112 See the specific manual pages for more information.
113 .Sh SEE ALSO
114 .Xr digittoint 3 ,
115 .Xr isalnum 3 ,
116 .Xr isalpha 3 ,
117 .Xr isascii 3 ,
118 .Xr isblank 3 ,
119 .Xr iscntrl 3 ,
120 .Xr isdigit 3 ,
121 .Xr isgraph 3 ,
122 .Xr isideogram 3 ,
123 .Xr islower 3 ,
124 .Xr isphonogram 3 ,
125 .Xr isprint 3 ,
126 .Xr ispunct 3 ,
127 .Xr isrune 3 ,
128 .Xr isspace 3 ,
129 .Xr isspecial 3 ,
130 .Xr isupper 3 ,
131 .Xr isxdigit 3 ,
132 .Xr toascii 3 ,
133 .Xr tolower 3 ,
134 .Xr toupper 3 ,
135 .Xr wctype 3 ,
136 .Xr ascii 7
137 .Sh STANDARDS
138 These functions, except for
139 .Fn digittoint ,
140 .Fn isascii ,
141 .Fn ishexnumber ,
142 .Fn isideogram ,
143 .Fn isnumber ,
144 .Fn isphonogram ,
145 .Fn isrune ,
146 .Fn isspecial
147 and
148 .Fn toascii ,
149 conform to
150 .St -isoC .
151 .Sh HISTORY
152 The functions
153 .Fn isalpha ,
154 .Fn isupper ,
155 .Fn islower ,
156 .Fn isdigit ,
157 .Fn isalnum ,
158 .Fn isspace ,
159 .Fn ispunct ,
160 .Fn isprint ,
161 .Fn iscntrl ,
162 and
163 .Fn isascii
164 first appeared in
165 .At v7 .