Embedded Artistry Framework
Embedded Systems C++ Framework
Functions
ispunct.c File Reference
#include <ctype.h>
Include dependency graph for ispunct.c:

Functions

int ispunct (int c)
 Checks if the given character is a punctuation character. More...
 

Function Documentation

◆ ispunct()

int ispunct ( int  ch)

Checks if the given character is a punctuation character.

Checks if the given character is a punctuation character using the default local. The following characters are classified as punctuation character:

  • (!"#$%&'()*+,-./:;<=>?@[]^_`{|}~)

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Parameters
chThe character to classify
Returns
Non-zero value if the character is a punctuation character, zero otherwise.

References isalnum(), and isgraph().

Referenced by bad_input(), and good_input().

Here is the caller graph for this function: