summaryrefslogtreecommitdiff
path: root/src/std/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/std/str.h')
-rw-r--r--src/std/str.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/std/str.h b/src/std/str.h
index f6f8820..9f96430 100644
--- a/src/std/str.h
+++ b/src/std/str.h
@@ -70,4 +70,9 @@ str8 str8_concat(arena* a, str8 left, str8 right);
static inline bool str8_is_null_term(str8 a) {
return a.buf[a.len] == 0; // This doesn't seem safe. YOLO
-} \ No newline at end of file
+}
+
+// TODO: move or delete this and replace with handling using our internal type
+static void skip_space(char *p) {
+ while (isspace((unsigned char)*p)) ++p;
+}