1CTYPE(3)                   Library Functions Manual                   CTYPE(3)
2
3
4

NAME

6       isalpha, isupper, islower, isdigit, isalnum, isspace, ispunct, isprint,
7       iscntrl, isascii - character classification
8

SYNOPSIS

10       #include <ctype.h>
11
12       isalpha(c)
13
14       . . .
15

DESCRIPTION

17       These macros classify ASCII-coded integer values by table lookup.  Each
18       is  a predicate returning nonzero for true, zero for false.  Isascii is
19       defined on all integer values; the rest are defined only where  isascii
20       is true and on the single non-ASCII value EOF (see stdio(3)).
21
22       isalpha        c is a letter
23
24       isupper        c is an upper case letter
25
26       islower        c is a lower case letter
27
28       isdigit        c is a digit
29
30       isalnum        c is an alphanumeric character
31
32       isspace        c is a space, tab, carriage return, newline, or formfeed
33
34       ispunct        c  is  a  punctuation  character  (neither  control  nor
35                      alphanumeric)
36
37       isprint        c is a printing character, code 040(8)  (space)  through
38                      0176 (tilde)
39
40       iscntrl        c is a delete character (0177) or ordinary control char‐
41                      acter (less than 040).
42
43       isascii        c is an ASCII character, code less than 0200
44

SEE ALSO

46       ascii(7)
47
48
49
50                                                                      CTYPE(3)
Impressum