xref: /original-bsd/lib/libc/locale/toascii.3 (revision 04dd0305)
1.\" Copyright (c) 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)toascii.3	8.1 (Berkeley) 06/04/93
7.\"
8.Dd
9.Dt TOASCII 3
10.Os
11.Sh NAME
12.Nm toascii
13.Nd convert a byte to 7-bit ASCII
14.Sh SYNOPSIS
15.Fd #include <ctype.h>
16.Ft int
17.Fn toascii "int c"
18.Sh DESCRIPTION
19The
20.Fn toascii
21function strips all but the low 7 bits from a letter,
22including parity or other marker bits.
23.Sh RETURN VALUES
24The
25.Fn toascii
26function always returns a valid ASCII character.
27.Sh SEE ALSO
28.Xr isascii 3 ,
29.Xr isalnum 3 ,
30.Xr isalpha 3 ,
31.Xr iscntrl 3 ,
32.Xr isdigit 3 ,
33.Xr isgraph 3 ,
34.Xr islower 3 ,
35.Xr isprint 3 ,
36.Xr ispunct 3 ,
37.Xr isspace 3 ,
38.Xr isupper 3 ,
39.Xr isxdigit 3 ,
40.Xr tolower 3 ,
41.Xr toupper 3 ,
42.Xr stdio 3 ,
43.Xr ascii 7
44