Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
isascii.c File Reference
#include <ctype.h>
Include dependency graph for isascii.c:

Functions

int isascii (int c)
 Checks if a given character is a 7-bit US-ASCII character. More...
 

Function Documentation

◆ isascii()

int isascii ( int  ch)

Checks if a given character is a 7-bit US-ASCII character.

Checks if a given character 7-bit unsigned char value that fits into the ASCII character set. which is any character between 0 and 0x7f inclusive.

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Parameters
chThe character to classify
Returns
Non-zero value if ch is a 7-bit US-ASCII character code, zero otherwise.

Referenced by bad_input(), and good_input().

Here is the caller graph for this function: