Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

isgraph - test for visible character

&pagelevel(4)&pagelevel

Syntax

#include <ctype.h>

int isgraph(int c);

Description isgraph() tests whether c is a character with a visible representation, i.e. an alphanumeric

or a special character. Spaces are not considered to be visible.

In all cases, the argument c is an int, the value of which must be representable as an
unsigned char or must equal the value of the macro EOF. If the argument c has any other
value, the behavior is undefined.

Return val.

!= 0

0

Character with a visible representation

Not a character with a visible representation

Notes

isgraph() is implemented both as a function and as a macro. To generate a function call,
the definition of the macro name must be first undefined (#undef isgraph).

The behavior of isgraph() is determined by the class graph of the current locale. The
current locale is the C locale, unless it was explicitly changed using setlocale().

See also

isalnum(), isalpha(), iscntrl(), isdigit(), islower(), isprint(), ispunct(),
isspace(), isupper(), isxdigit(), setlocale(), ctype.h.