toascii (3)
Leading comments
Copyright (c) 1995 by Jim Van Zandt <jrv@vanzandt.mv.com> %%%LICENSE_START(VERBATIM) Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. S...
NAME
toascii - convert character to ASCIISYNOPSIS
#include <ctype.h> int toascii(int c);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
toascii(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
DESCRIPTION
toascii() converts c to a 7-bit unsigned char value that fits into the ASCII character set, by clearing the high-order bits.RETURN VALUE
The value returned is that of the converted character.ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).Interface | Attribute | Value |
toascii() | Thread safety | MT-Safe |