TOASCII(3) Library Functions Manual TOASCII(3)

toasciitranslate an integer to a 7-bit ASCII character


#include <ctype.h>

int toascii(int c);

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

The toascii () function shall return the value ( &0x7f).

No errors are returned.

None.

The toascii () function cannot be used portably in a localized application.

None.

The toascii () function may be removed in a future version.

isascii(3)

XBD <ctype.h>

First released in Issue 1. Derived from Issue 1 of the SVID.

The toascii () function is marked obsolescent.

January 1, 2013 posix.fail