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

Functions

int isgraph (int c)
 Checks if the given character has a graphical representation. More...
 

Function Documentation

◆ isgraph()

int isgraph ( int  ch)

Checks if the given character has a graphical representation.

Checks if the given character has a graphical representation using the default locale. The following characters are graphical:

  • number (0123456789)
  • uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ)
  • letter (abcdefghijklmnopqrstuvwxyz)
  • punctuation character (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~)

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 the character has a graphical representation character, zero otherwise.

Referenced by bad_input(), good_input(), and ispunct().

Here is the caller graph for this function: