From 3854bef8b853a369c4fc3a39abff5e2e9cd77625 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Tue, 5 Mar 2024 21:27:34 +1100 Subject: why is it crashing on file loading now? --- src/std/str.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/std') 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; +} -- cgit v1.2.3-70-g09d2