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