diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-03-05 21:27:34 +1100 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-03-05 21:27:34 +1100 |
commit | 3854bef8b853a369c4fc3a39abff5e2e9cd77625 (patch) | |
tree | e5836d1917a05932797b9652f568ccd1abe7aa14 /src/std/str.h | |
parent | 501c44488fb8918efb5f72b8c42690e8197aad31 (diff) |
why is it crashing on file loading now?
Diffstat (limited to 'src/std/str.h')
-rw-r--r-- | src/std/str.h | 7 |
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; +} |