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