Merge from vendor branch BZIP:
[dragonfly.git] / lib / libc / gen / ctype.3
CommitLineData
984263bc
MD
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 $
292490aa 34.\" $DragonFly: src/lib/libc/gen/ctype.3,v 1.4 2006/10/21 08:57:31 swildner Exp $
984263bc 35.\"
292490aa 36.Dd October 21, 2006
984263bc
MD
37.Dt CTYPE 3
38.Os
39.Sh NAME
40.Nm isalnum ,
41.Nm isalpha ,
42.Nm isascii ,
43.Nm isblank ,
44.Nm iscntrl ,
45.Nm isdigit ,
46.Nm isgraph ,
984263bc 47.Nm islower ,
984263bc
MD
48.Nm isprint ,
49.Nm ispunct ,
984263bc 50.Nm isspace ,
984263bc
MD
51.Nm isupper ,
52.Nm isxdigit ,
53.Nm toascii ,
54.Nm tolower ,
55.Nm toupper
292490aa 56.Nd character classification and mapping functions
984263bc
MD
57.Sh LIBRARY
58.Lb libc
59.Sh SYNOPSIS
60.In ctype.h
61.Ft int
62.Fn isalnum "int c"
63.Ft int
64.Fn isalpha "int c"
65.Ft int
66.Fn isascii "int c"
67.Ft int
292490aa
SW
68.Fn isblank "int c"
69.Ft int
984263bc
MD
70.Fn iscntrl "int c"
71.Ft int
72.Fn isdigit "int c"
73.Ft int
74.Fn isgraph "int c"
75.Ft int
984263bc
MD
76.Fn islower "int c"
77.Ft int
984263bc
MD
78.Fn isprint "int c"
79.Ft int
80.Fn ispunct "int c"
81.Ft int
984263bc
MD
82.Fn isspace "int c"
83.Ft int
84.Fn isupper "int c"
85.Ft int
86.Fn isxdigit "int c"
87.Ft int
88.Fn toascii "int c"
89.Ft int
90.Fn tolower "int c"
91.Ft int
92.Fn toupper "int c"
93.Sh DESCRIPTION
94The above functions perform character tests and conversions on the integer
95.Ar c .
96They are available as macros, defined in the include file
44cb301e 97.In ctype.h ,
984263bc
MD
98or as true functions in the C library.
99See the specific manual pages for more information.
100.Sh SEE ALSO
101.Xr isalnum 3 ,
102.Xr isalpha 3 ,
103.Xr isascii 3 ,
104.Xr isblank 3 ,
105.Xr iscntrl 3 ,
106.Xr isdigit 3 ,
107.Xr isgraph 3 ,
108.Xr islower 3 ,
109.Xr isprint 3 ,
110.Xr ispunct 3 ,
111.Xr isspace 3 ,
112.Xr isupper 3 ,
113.Xr isxdigit 3 ,
114.Xr toascii 3 ,
115.Xr tolower 3 ,
116.Xr toupper 3 ,
117.Xr ascii 7
118.Sh STANDARDS
292490aa 119These functions, with the exception of
984263bc 120.Fn isascii ,
292490aa 121.Fn isblank
984263bc
MD
122and
123.Fn toascii ,
124conform to
125.St -isoC .