1TOASCII(P) POSIX Programmer's Manual TOASCII(P)
2
3
4
6 toascii - translate an integer to a 7-bit ASCII character
7
9 #include <ctype.h>
10
11 int toascii(int c);
12
13
15 The toascii() function shall convert its argument into a 7-bit ASCII
16 character.
17
19 The toascii() function shall return the value (c &0x7f).
20
22 No errors are returned.
23
24 The following sections are informative.
25
27 None.
28
30 None.
31
33 None.
34
36 None.
37
39 isascii() , the Base Definitions volume of IEEE Std 1003.1-2001,
40 <ctype.h>
41
43 Portions of this text are reprinted and reproduced in electronic form
44 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
45 -- Portable Operating System Interface (POSIX), The Open Group Base
46 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
47 Electrical and Electronics Engineers, Inc and The Open Group. In the
48 event of any discrepancy between this version and the original IEEE and
49 The Open Group Standard, the original IEEE and The Open Group Standard
50 is the referee document. The original Standard can be obtained online
51 at http://www.opengroup.org/unix/online.html .
52
53
54
55IEEE/The Open Group 2003 TOASCII(P)