1 .\" Copyright (c) 1995 by Jim Van Zandt <jrv@vanzandt.mv.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" Added BUGS section, aeb, 950919
7 .TH TOASCII 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
9 toascii \- convert character to ASCII
12 .RI ( libc ", " \-lc )
17 .BI "int toascii(int " "c" );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
28 || /* Glibc since 2.19: */ _DEFAULT_SOURCE
29 || /* Glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
37 value that fits into the ASCII character set, by clearing the
40 The value returned is that of the converted character.
42 For an explanation of the terms used in this section, see
50 Interface Attribute Value
53 T} Thread safety MT-Safe
59 SVr4, BSD, POSIX.1-2001.
63 noting that it cannot be used portably in a localized application.
65 Many people will be unhappy if you use this function.
66 This function will convert accented letters into random characters.