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(): _XOPEN_SOURCE
16           || /* Glibc since 2.19: */ _DEFAULT_SOURCE
17           || /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
18

DESCRIPTION

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

RETURN VALUE

24       The value returned is that of the converted character.
25

ATTRIBUTES

27       For  an  explanation  of  the  terms  used   in   this   section,   see
28       attributes(7).
29
30       ┌──────────┬───────────────┬─────────┐
31Interface Attribute     Value   
32       ├──────────┼───────────────┼─────────┤
33toascii() │ Thread safety │ MT-Safe │
34       └──────────┴───────────────┴─────────┘

CONFORMING TO

36       SVr4,  BSD,  POSIX.1-2001.   POSIX.1-2008  marks toascii() as obsolete,
37       noting that it cannot be used portably in a localized application.
38

BUGS

40       Many people will be unhappy if you use this  function.   This  function
41       will convert accented letters into random characters.
42

SEE ALSO

44       isascii(3), tolower(3), toupper(3)
45

COLOPHON

47       This  page  is  part of release 5.04 of the Linux man-pages project.  A
48       description of the project, information about reporting bugs,  and  the
49       latest     version     of     this    page,    can    be    found    at
50       https://www.kernel.org/doc/man-pages/.
51
52
53
54GNU                               2016-03-15                        TOASCII(3)
Impressum