MicrOS
ispunct.c File Reference
#include "../ctype.h"

Functions

int ispunct (int c)
 Check if value is punctation. More...
 

Function Documentation

◆ ispunct()

int ispunct ( int  c)

Check if value is punctation.

The ispunct function tests for any printing character that is one of a locale-specific set of punctuation characters for which neither isspace nor isalnum is true. In the "C" locale, ispunct returns true for every printing character for which neither isspace nor isalnum is true.

Parameters
cValue to check.
Returns
1 if true, 0 if false