Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 740 Bytes

026_isprint.asciidoc

File metadata and controls

44 lines (29 loc) · 740 Bytes

isprint

#include <ctype.h>

int isprint (char c);
DESCRIPTION

The isprint function tests c to determine if it is a printable character (0x20-0x7E).

RETURN VALUE

The isprint 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, isgraph, islower, ispunct, isspace, isupper, isxdigit

EXAMPLE
link:src/isprint.c[role=include]
OUTPUT
$ gcc -Wall isprint.c
$ ./a.out
isprint (30) NO
isprint (31) NO
isprint (32) YES
isprint (33) YES