]> git.saurik.com Git - apple/libc.git/blame - locale/FreeBSD/ctype.3
Libc-1082.50.1.tar.gz
[apple/libc.git] / locale / FreeBSD / ctype.3
CommitLineData
e9ce8d39
A
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.
e9ce8d39
A
12.\" 4. 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.\"
5b2abdfb 28.\" @(#)ctype.3 8.1 (Berkeley) 6/4/93
1f2f436a 29.\" $FreeBSD: src/lib/libc/locale/ctype.3,v 1.18 2009/09/04 07:44:58 des Exp $
e9ce8d39 30.\"
3d9156a7 31.Dd March 30, 2004
5b2abdfb 32.Dt CTYPE 3
e9ce8d39
A
33.Os
34.Sh NAME
9385eb3d 35.Nm digittoint ,
5b2abdfb
A
36.Nm isalnum ,
37.Nm isalpha ,
38.Nm isascii ,
39.Nm isblank ,
40.Nm iscntrl ,
41.Nm isdigit ,
42.Nm isgraph ,
43.Nm ishexnumber ,
44.Nm isideogram ,
45.Nm islower ,
46.Nm isnumber ,
47.Nm isphonogram ,
48.Nm isprint ,
49.Nm ispunct ,
50.Nm isrune ,
51.Nm isspace ,
52.Nm isspecial ,
53.Nm isupper ,
54.Nm isxdigit ,
55.Nm toascii ,
56.Nm tolower ,
57.Nm toupper
58.Nd character classification macros
e9ce8d39
A
59.Sh LIBRARY
60.Lb libc
61.Sh SYNOPSIS
5b2abdfb 62.In ctype.h
e9ce8d39 63.Ft int
9385eb3d
A
64.Fn digittoint "int c"
65.Ft int
5b2abdfb
A
66.Fn isalnum "int c"
67.Ft int
68.Fn isalpha "int c"
69.Ft int
70.Fn isascii "int c"
71.Ft int
72.Fn iscntrl "int c"
73.Ft int
74.Fn isdigit "int c"
75.Ft int
76.Fn isgraph "int c"
77.Ft int
78.Fn ishexnumber "int c"
79.Ft int
80.Fn isideogram "int c"
81.Ft int
82.Fn islower "int c"
83.Ft int
84.Fn isnumber "int c"
85.Ft int
86.Fn isphonogram "int c"
87.Ft int
88.Fn isspecial "int c"
89.Ft int
90.Fn isprint "int c"
91.Ft int
92.Fn ispunct "int c"
93.Ft int
94.Fn isrune "int c"
95.Ft int
96.Fn isspace "int c"
97.Ft int
98.Fn isupper "int c"
99.Ft int
100.Fn isxdigit "int c"
101.Ft int
102.Fn toascii "int c"
103.Ft int
104.Fn tolower "int c"
105.Ft int
106.Fn toupper "int c"
e9ce8d39 107.Sh DESCRIPTION
5b2abdfb 108The above functions perform character tests and conversions on the integer
9385eb3d 109.Fa c .
5b2abdfb 110They are available as macros, defined in the include file
3d9156a7 111.In ctype.h ,
5b2abdfb
A
112or as true functions in the C library.
113See the specific manual pages for more information.
ad3c9f2a
A
114.Pp
115Extended locale versions of these functions are documented in
116.Xr ctype_l 3 .
117See
118.Xr xlocale 3
119for more information.
e9ce8d39 120.Sh SEE ALSO
9385eb3d 121.Xr digittoint 3 ,
5b2abdfb
A
122.Xr isalnum 3 ,
123.Xr isalpha 3 ,
124.Xr isascii 3 ,
125.Xr isblank 3 ,
126.Xr iscntrl 3 ,
127.Xr isdigit 3 ,
128.Xr isgraph 3 ,
3d9156a7 129.Xr isideogram 3 ,
5b2abdfb 130.Xr islower 3 ,
3d9156a7 131.Xr isphonogram 3 ,
5b2abdfb
A
132.Xr isprint 3 ,
133.Xr ispunct 3 ,
3d9156a7 134.Xr isrune 3 ,
5b2abdfb 135.Xr isspace 3 ,
3d9156a7 136.Xr isspecial 3 ,
5b2abdfb
A
137.Xr isupper 3 ,
138.Xr isxdigit 3 ,
139.Xr toascii 3 ,
140.Xr tolower 3 ,
141.Xr toupper 3 ,
3d9156a7 142.Xr wctype 3 ,
ad3c9f2a
A
143.Xr ascii 7 ,
144.Xr ctype_l 3
5b2abdfb
A
145.Sh STANDARDS
146These functions, except for
147.Fn digittoint ,
148.Fn isascii ,
5b2abdfb
A
149.Fn ishexnumber ,
150.Fn isideogram ,
151.Fn isnumber ,
152.Fn isphonogram ,
153.Fn isrune ,
154.Fn isspecial
155and
156.Fn toascii ,
157conform to
158.St -isoC .