xref: /csrg-svn/lib/libc/locale/toascii.3 (revision 61137)
1*61137Sbostic.\" Copyright (c) 1993
2*61137Sbostic.\"	The Regents of the University of California.  All rights reserved.
358380Sbostic.\"
458380Sbostic.\" %sccs.include.redist.roff%
558380Sbostic.\"
6*61137Sbostic.\"	@(#)toascii.3	8.1 (Berkeley) 06/04/93
758380Sbostic.\"
858380Sbostic.Dd
958380Sbostic.Dt TOASCII 3
1058380Sbostic.Os
1158380Sbostic.Sh NAME
1258380Sbostic.Nm toascii
1358380Sbostic.Nd convert a byte to 7-bit ASCII
1458380Sbostic.Sh SYNOPSIS
1558380Sbostic.Fd #include <ctype.h>
1658380Sbostic.Ft int
1758380Sbostic.Fn toascii "int c"
1858380Sbostic.Sh DESCRIPTION
1958380SbosticThe
2058380Sbostic.Fn toascii
2158380Sbosticfunction strips all but the low 7 bits from a letter,
2258380Sbosticincluding parity or other marker bits.
2358380Sbostic.Sh RETURN VALUES
2458380SbosticThe
2558380Sbostic.Fn toascii
2658380Sbosticfunction always returns a valid ASCII character.
2758380Sbostic.Sh SEE ALSO
2858380Sbostic.Xr isascii 3 ,
2958380Sbostic.Xr isalnum 3 ,
3058380Sbostic.Xr isalpha 3 ,
3158380Sbostic.Xr iscntrl 3 ,
3258380Sbostic.Xr isdigit 3 ,
3358380Sbostic.Xr isgraph 3 ,
3458380Sbostic.Xr islower 3 ,
3558380Sbostic.Xr isprint 3 ,
3658380Sbostic.Xr ispunct 3 ,
3758380Sbostic.Xr isspace 3 ,
3858380Sbostic.Xr isupper 3 ,
3958380Sbostic.Xr isxdigit 3 ,
4058380Sbostic.Xr tolower 3 ,
4158380Sbostic.Xr toupper 3 ,
4258380Sbostic.Xr stdio 3 ,
4358380Sbostic.Xr ascii 7
44