1TOASCII(3)                 Linux Programmer's Manual                TOASCII(3)
2
3
4

NAME

6       toascii - convert character to ASCII
7

SYNOPSIS

9       #include <ctype.h>
10
11       int toascii(int c);
12
13   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15       toascii(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
16

DESCRIPTION

18       toascii()  converts c to a 7-bit unsigned char value that fits into the
19       ASCII character set, by clearing the high-order bits.
20

RETURN VALUE

22       The value returned is that of the converted character.
23

CONFORMING TO

25       SVr4, BSD, POSIX.1-2001.  POSIX.1-2008  marks  toascii()  as  obsolete,
26       noting that it cannot be use portably in a localized application.
27

BUGS

29       Many  people  will  be unhappy if you use this function.  This function
30       will convert accented letters into random characters.
31

SEE ALSO

33       isascii(3), tolower(3), toupper(3)
34

COLOPHON

36       This page is part of release 3.53 of the Linux  man-pages  project.   A
37       description  of  the project, and information about reporting bugs, can
38       be found at http://www.kernel.org/doc/man-pages/.
39
40
41
42GNU                               2009-03-15                        TOASCII(3)
Impressum