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