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

222 Chapter5
HP C/iX Library Function Descriptions
ispunct
ispunct
Tests whether an argument is any printable character that is not a space, a digit, or a
letter.
Syntax
#include <ctype.h>
int ispunct (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 that is not a space, a
digit, or a letter.
0 The argument passed in
c
is not any printable character that is not a
space, a digit, or a letter.
Description
The ispunct function returns a nonzero value if the argument passed in
c
is any printable
character that is not a space, a digit, or a letter; otherwise, the returned value is zero.
See Also
isalnum, isalpha, iscntrl, isdigit, isgraph, islower, isprint, isspace, isupper,
isxdigit, ANSI C 4.3.1.8, POSIX.1 8.1