mirror of
https://github.com/RGBCube/serenity
synced 2026-01-16 15:21:00 +00:00
8 lines
190 B
C++
8 lines
190 B
C++
#include <ctype.h>
|
|
#include <string.h>
|
|
|
|
int ispunct(int c)
|
|
{
|
|
const char* punctuation_characters = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
|
|
return !!strchr(punctuation_characters, c);
|
|
}
|