toascii (3) - Linux Man Pages
toascii: convert character to ASCII
toascii - convert character to ASCII
#include <ctype.h> int toascii(int c);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
to a 7-bit
value that fits into the ASCII character set, by clearing the
The value returned is that of the converted character.
For an explanation of the terms used in this section, see
Interface Attribute Value
Thread safety MT-Safe
SVr4, BSD, POSIX.1-2001.
noting that it cannot be used portably in a localized application.
Many people will be unhappy if you use this function.
This function will convert accented letters into random characters.
This page is part of release 5.05 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at