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