isascii
Tests for an ASCII character (function or macro)
#include <ctype.h>
int isascii (
int c);
The isascii function or macro returns a nonzero value when the character is in the range from 0 to 127. Otherwise, a value of 0 is returned.
The isascii function or macro tests for a character in the range from 0 to 127.
isalpha, isalnum, iscntrl, isdigit, islower, isprint, ispunct, isspace, isupper, isxdigit, tolower, toupper
#include <ctype.h> #include <stdio.h> main () { printf ("%d %d %d \u", isascii (’\u’), isascii (’\f’), isascii (’A’)); }
produces the following:
1 1 1