Delimiter runs

This commit is contained in:
Nate Choe
2022-05-09 12:15:10 -05:00
parent 08cfe673f1
commit 439fc5e3d1
3 changed files with 121 additions and 2 deletions

View File

@@ -81,3 +81,7 @@ void resetstring(struct string *str) {
int isctrl(int c) {
return (0 <= c && c <= 0x1f) || c == 0x7f;
}
int ispunc(int c) {
return strchr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", c) != NULL;
}