1 2 3 4 5 6
#include <ctype.h> // https://pubs.opengroup.org/onlinepubs/9699919799/functions/ispunct.html int ispunct(int c) { return (c == '.'); }