summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index de9a49f..352deb2 100644
--- a/misc.c
+++ b/misc.c
@@ -66,6 +66,11 @@ static inline char *str_to_cstr(String s) {
return cstr(s.str, s.len);
}
+static void print_str(String s) {
+ fwrite(s.str, 1, s.len, stdout);
+ printf("\n");
+}
+
static inline bool str_eq_cstr(String s, const char *str) {
return strncmp(s.str, str, s.len) == 0;
}