1toascii(3C) Standard C Library Functions toascii(3C)
2
3
4
6 toascii - translate integer to a 7-bit ASCII character
7
9 #include <ctype.h>
10
11 int toascii(int c);
12
13
15 The toascii() function converts its argument into a 7-bit ASCII charac‐
16 ter.
17
19 The toascii() function returns the value (c & 0x7f).
20
22 No errors are returned.
23
25 See attributes(5) for descriptions of the following attributes:
26
27
28
29
30 ┌─────────────────────────────┬─────────────────────────────┐
31 │ATTRIBUTE TYPE │ATTRIBUTE VALUE │
32 ├─────────────────────────────┼─────────────────────────────┤
33 │CSI │Enabled │
34 ├─────────────────────────────┼─────────────────────────────┤
35 │Interface Stability │Standard │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │MT-Level │MT-Safe │
38 └─────────────────────────────┴─────────────────────────────┘
39
41 isascii(3C), attributes(5), standards(5)
42
43
44
45SunOS 5.11 14 Aug 2002 toascii(3C)