ISASCII(3) Library Functions Manual ISASCII(3)

isasciitest for a 7-bit US-ASCII character


#include <ctype.h>

int isascii(int c);

The isascii () function shall test whether c is a 7-bit US-ASCII character code.

The isascii () function is defined on all integer values.

The isascii () function shall return non-zero if c is a 7-bit US-ASCII character code between 0 and octal 0177 inclusive; otherwise, it shall return 0.

No errors are defined.

None.

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

None.

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

XBD <ctype.h>

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

The isascii () function is marked obsolescent.

January 1, 2013 posix.fail