HP C/iX Library Reference Manual (30026-90004)

Chapter 5 221
HP C/iX Library Function Descriptions
isprint
isprint
Tests whether an argument is any printable character including the space character (octal
values 040 through 0176).
Syntax
#include <ctype.h>
int isprint (int
c
);
Parameters
c
An argument to be evaluated. The argument must be representable as an
unsigned char or the macro EOF.
Return Values
0 The argument passed in
c
is any printable character including the space
character (octal values 040 through 0176).
0 The argument passed in
c
is not any printable character.
Description
The isprint function returns a nonzero value if the argument passed in
c
is any printable
character including the space character (octal values 040 through 0176); otherwise, the
returned value is zero.
See Also
isalnum, isalpha, iscntrl, isdigit, isgraph, islower, ispunct, isspace, isupper,
isxdigit, ANSI C 4.3.1.7, POSIX.1 8.1