ispunct
From cppreference.com
| Defined in header <ctype.h>
|
||
| int ispunct( int ch ); |
||
Checks if the given character is a punctuation character in the current C locale. The default C locale classifies the characters !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ as punctuation.
The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.
Contents |
[edit] Parameters
| ch | - | character to classify |
[edit] Return value
Non-zero value if the character is a punctuation character, zero otherwise.