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