TIOCGPGRP copies an int out of the kernel
[unix-history] / usr / src / lib / libc / locale / ctype.3
CommitLineData
888bd009 1.\" @(#)ctype.3 6.4 (Berkeley) %G%
ec009048 2.\"
d73c83fb 3.TH CTYPE 3 ""
ec009048
KM
4.AT 3
5.SH NAME
f1f628bd 6isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii \- character classification macros
ec009048
KM
7.SH SYNOPSIS
8.B #include <ctype.h>
9.PP
10.B isalpha(c)
11.PP
12.B . . .
13.SH DESCRIPTION
14These macros classify ASCII-coded integer values
15by table lookup.
16Each is a predicate returning nonzero for true,
17zero for false.
18.I Isascii
f1f628bd
JB
19and
20.I toascii
21are defined on all integer values; the rest
ec009048
KM
22are defined only where
23.I isascii
24is true and on the single non-ASCII value
25EOF (see
b54f16c2 26.IR stdio (3S)).
ec009048
KM
27.TP 15n
28.I isalpha
29.I c
30is a letter
31.TP
32.I isupper
33.I c
34is an upper case letter
35.TP
36.I islower
37.I c
38is a lower case letter
39.TP
40.I isdigit
41.I c
42is a digit
43.TP
d73c83fb
KM
44.I isxdigit
45.I c
46is a hex digit
47.TP
ec009048
KM
48.I isalnum
49.I c
50is an alphanumeric character
51.TP
52.I isspace
53.I c
d73c83fb 54is a space, tab, carriage return, newline, vertical tab, or formfeed
ec009048
KM
55.TP
56.I ispunct
57.I c
58is a punctuation character (neither control nor alphanumeric)
59.TP
60.I isprint
61.I c
f1f628bd
JB
62is a printing character, code 040(8) (space) through 0176 (tilde)
63.TP
64.I isgraph
65.I c
888bd009 66is a printing character, similar to
f1f628bd
JB
67.I isprint
68except false for space.
ec009048
KM
69.TP
70.I iscntrl
71.I c
72is a delete character (0177) or ordinary control character
7a4be743 73(less than 040).
ec009048
KM
74.TP
75.I isascii
76.I c
77is an ASCII character, code less than 0200
f1f628bd
JB
78.TP
79.I tolower
80.I c
81is converted to lower case. Return value is undefined if not
82.I isupper(c).
83.TP
84.I toupper
85.I c
86is converted to upper case. Return value is undefined if not
87.I islower(c).
88.TP
89.I toascii
90.I c
91is converted to be a valid ascii character.
ec009048
KM
92.SH "SEE ALSO"
93ascii(7)