summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/string.h b/src/include/string.h
index fc96393c48..2f6b5f1b68 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -156,6 +156,11 @@ static inline int isspace(int c)
}
}
+static inline int isprint(int c)
+{
+ return c >= ' ' && c <= '~';
+}
+
static inline int isdigit(int c)
{
return (c >= '0' && c <= '9');