source: trunk/minix/man/man3/ctype.3@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.7 KB
Line 
1.\" @(#)ctype.3 6.4 (Berkeley) 5/12/86
2.\"
3.TH CTYPE 3 "May 12, 1986"
4.AT 3
5.SH NAME
6ctype, isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii \- character classification macros
7.SH SYNOPSIS
8.nf
9.ft B
10#include <ctype.h>
11
12int isalpha(int \fIc\fP)
13\&...
14.fi
15.SH DESCRIPTION
16These macros classify characters
17by table lookup.
18Each is a predicate returning nonzero for true,
19zero for false.
20.B Isascii
21and
22.B toascii
23are defined on all integer values; the rest
24are defined only on the range of
25.B "unsigned char"
26and on the special value
27EOF (see
28.BR stdio (3)).
29.TP 15n
30.B isalpha
31.I c
32is a letter
33.TP
34.B isupper
35.I c
36is an upper case letter
37.TP
38.B islower
39.I c
40is a lower case letter
41.TP
42.B isdigit
43.I c
44is a digit
45.TP
46.B isxdigit
47.I c
48is a hex digit
49.TP
50.B isalnum
51.I c
52is an alphanumeric character
53.TP
54.B isspace
55.I c
56is a space, tab, carriage return, newline, vertical tab, or formfeed
57.TP
58.B ispunct
59.I c
60is a punctuation character (neither control nor alphanumeric)
61.TP
62.B isprint
63.I c
64is a printing character, code 040(8) (space) through 0176 (tilde)
65.TP
66.B isgraph
67.I c
68is a printing character, similar to
69.B isprint
70except false for space.
71.TP
72.B iscntrl
73.I c
74is a delete character (0177) or ordinary control character
75(less than 040).
76.TP
77.B isascii
78.I c
79is an ASCII character, code less than 0200
80.TP
81.B tolower
82.I c
83is converted to lower case. Return value is undefined if not
84.BR isupper (\fIc\fR).
85.TP
86.B toupper
87.I c
88is converted to upper case. Return value is undefined if not
89.BR islower (\fIc\fR).
90.TP
91.B toascii
92.I c
93is converted to be a valid ascii character.
94.SH "SEE ALSO"
95.BR ascii (7)
Note: See TracBrowser for help on using the repository browser.