Add iscntrl_ascii()

It's too easy to miss the DEL character.
This commit is contained in:
Přemysl Eric Janouch 2020-10-02 06:31:11 +02:00
parent 1a76b2032e
commit 7f919025ee
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 6 additions and 0 deletions

View File

@ -2672,6 +2672,12 @@ strncasecmp_ascii (const char *a, const char *b, size_t n)
return 0;
}
static bool
iscntrl_ascii (int c)
{
return (c >= 0 && c < 32) || c == 0x7f;
}
static bool
isalpha_ascii (int c)
{