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

DESCRIPTION

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

RETURN VALUE

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

ATTRIBUTES

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

CONFORMING TO

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

BUGS

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

SEE ALSO

46       isascii(3), tolower(3), toupper(3)
47

COLOPHON

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