xref: /original-bsd/lib/libc/locale/isascii.3 (revision 11cb310b)
1.\" Copyright (c) 1989, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)isascii.3	5.1 (Berkeley) 05/02/91
7.\"
8.Dd
9.Dt ISASCII 3
10.Os
11.Sh NAME
12.Nm isascii
13.Nd test for ASCII character
14.Sh SYNOPSIS
15.Fd #include <ctype.h>
16.Ft int
17.Fn isascii "int c"
18.Sh DESCRIPTION
19The
20.Fn isascii
21function tests for an
22.Tn ASCII
23character, which is any character
24for which either
25.Xr iscntrl 3
26(character codes 000 through 037 and also including
270177) or
28.Xr isprint 3
29(character codes 040 through 0176) is true.
30.Sh SEE ALSO
31.Xr isalnum 3 ,
32.Xr isalpha 3 ,
33.Xr iscntrl 3 ,
34.Xr isdigit 3 ,
35.Xr isgraph 3 ,
36.Xr islower 3 ,
37.Xr isprint 3 ,
38.Xr ispunct 3 ,
39.Xr isspace 3 ,
40.Xr isupper 3 ,
41.Xr isxdigit 3 ,
42.Xr toascii 3 ,
43.Xr tolower 3 ,
44.Xr toupper 3 ,
45.Xr stdio 3
46.Xr ascii 7
47.Sh STANDARDS
48The
49.Fn isascii
50function conforms to
51.St -ansiC .
52