aboutsummaryrefslogtreecommitdiff
path: root/src/util_rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util_rt.c')
-rw-r--r--src/util_rt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util_rt.c b/src/util_rt.c
index a521f3a..185faee 100644
--- a/src/util_rt.c
+++ b/src/util_rt.c
@@ -192,6 +192,10 @@ bool prne_cisprint (const char c) {
return 32 <= c && c < 127;
}
+bool prne_ciszero (const char c) {
+ return c == 0;
+}
+
bool prne_nstreq (const char *a, const char *b) {
return strcmp(a == NULL ? "" : a, b == NULL ? "" : b) == 0;
}