Table of Contents
Previous topic Next topic
C LIBRARY FUNCTIONS->Detailed Descriptions->ispunct()
Summary
#include <ctype.h>
int ispunct(int c); | Test for punctuation character (isalnum(c), iscntrl(c) and isspace(c) all false) |
Parameter
c Integer to be tested
Description
This function tests the integer passed to it to see if it is a punctuation character: isalnum(c), iscntrl(c) and isspace(c) all false.
The ASCII character set is assumed.
Return Value
TRUE (1) is returned if the character is a punctuation character, otherwise FALSE (0) is returned.