Section: Linux Programmer's Manual (3) Updated: 2009-03-15 Local index
toascii - convert character to ASCII
int toascii(int c);
Feature Test Macro Requirements for glibc (see
_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
converts c to a 7-bit unsigned char value
that fits into the ASCII character set, by clearing the
The value returned is that of the converted character.
SVr4, BSD, POSIX.1-2001.
noting that it cannot be use 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 3.27 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:57:44 GMT, April 16, 2011