ispunct

Tests for a punctuation character (function or macro)

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Character Manipulation

Syntax

  #include <ctype.h>  
   
  int ispunct  (  
     int   c);
  

Parameters

c
(IN) Specifies the character to be tested.

Return Values

ispunct returns a nonzero value when the argument is a punctuation character. Otherwise, a value of 0 is returned.

Remarks

The ispunct function or macro tests for any punctuation character, such as a comma (,) or a period (.).

See Also

isalnum, isalpha, iscntrl, isdigit, islower, isprint, isspace, isupper, isxdigit, tolower, toupper