From 4a6b99649a641f98d1d740b8dfd916f2e7ee3085 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 4 Mar 2024 12:21:56 -0600 Subject: parser almost done --- src/types/str.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/types/str.c') diff --git a/src/types/str.c b/src/types/str.c index 12a6bb1..bfedd87 100644 --- a/src/types/str.c +++ b/src/types/str.c @@ -53,4 +53,9 @@ void str_popf(str* s, int len){ s->c[s->len] = 0; } +void str_popb(str* s, int len){ + s->len -= len; + s->c[s->len] = 0; +} + -- cgit v1.2.3