Research V7 development
[unix-history] / usr / man / man3 / ctype.3
CommitLineData
9aa02762
DR
1.TH CTYPE 3
2.SH NAME
3isalpha, isupper, islower, isdigit, isalnum, isspace, ispunct,
4isprint, iscntrl, isascii \-
5character classification
6.SH SYNOPSIS
7.B #include <ctype.h>
8.PP
9.B isalpha(c)
10.PP
11.B . . .
12.SH DESCRIPTION
13These macros classify ASCII-coded integer values
14by table lookup.
15Each is a predicate returning nonzero for true,
16zero for false.
17.I Isascii
18is defined on all integer values; the rest
19are defined only where
20.I isascii
21is true and on the single non-ASCII value
22EOF (see
23.IR stdio (3)).
24.TP 15n
25.I isalpha
26.I c
27is a letter
28.TP
29.I isupper
30.I c
31is an upper case letter
32.TP
33.I islower
34.I c
35is a lower case letter
36.TP
37.I isdigit
38.I c
39is a digit
40.TP
41.I isalnum
42.I c
43is an alphanumeric character
44.TP
45.I isspace
46.I c
47is a space, tab, carriage return, newline, or formfeed
48.TP
49.I ispunct
50.I c
51is a punctuation character (neither control nor alphanumeric)
52.TP
53.I isprint
54.I c
55is a printing character, code 040(8) (space) through 0176 (tilde)
56.TP
57.I iscntrl
58.I c
59is a delete character (0177) or ordinary control character
60(less than 040).
61.TP
62.I isascii
63.I c
64is an ASCII character, code less than 0200
65.SH "SEE ALSO"
66ascii(7)