TOASCII(3C) Standard C Library Functions TOASCII(3C)

toascii - translate integer to a 7-bit ASCII character

#include <ctype.h>
int toascii(int c);

The toascii() function converts its argument into a 7-bit ASCII character.

The toascii() function returns the value (c & 0x7f).

No errors are returned.

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
CSI Enabled
Interface Stability Standard
MT-Level MT-Safe

isascii(3C), attributes(7), standards(7)

August 14, 2002 OmniOS