COHERENT manpages

This page displays the COHERENT manpage for ispunct() [Check if a character is a punctuation mark].

List of available manpages
Index


ispunct() -- ctype Function (libc)

Check if a character is a punctuation mark
#include <ctype.h>
int ispunct(c) int c;

ispunct() tests whether the argument c is a punctuation mark, i.e., neither
an alphanumeric  character nor  a control  character.  It returns  a number
other than zero if the character  tested is a punctuation mark, and zero if
it is not.  ispunct() assumes that c is an ASCII character or EOF.

Example

For an example of how to use this macro, see the entry for ctype.h.

See Also

ASCII,
libc
ANSI Standard, §7.3.1.8
POSIX Standard, §8.1