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