ispunct Function (Macro)

ctype.h

short ispunct (short c);

Checks whether a character is a punctuation character.

ispunct returns nonzero if c is a punctuation character, otherwise it returns zero. Punctuation characters are all characters in standard ASCII graph range (0x21 to 0x7F), which are not alphanumeric character (see isalnum). ispunct is an inline function which is implemented using GNU C smart macros, which expands to a relatively large code.