Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 761 Bytes

024_isgraph.asciidoc

File metadata and controls

43 lines (28 loc) · 761 Bytes

isgraph

#include <ctype.h>

int isgraph (char c);
DESCRIPTION

The isgraph function tests c to determine if it is a printable character (not including space). The character values tested for are 0x21-0x7E.

RETURN VALUE

The isgraph function returns a value of 1 if c is a printable character and a value of 0 if it is not.

SEE ALSO

isalnum, isalpha, iscntrl, isdigit, islower, isprint, ispunct, isspace, isupper, isxdigit

EXAMPLE
link:src/isgraph.c[role=include]
OUTPUT
$ gcc -Wall isgraph.c
$ ./a.out
isgraph ( ) NO
isgraph (!) YES