From 6836db9b00d4f13a78a53cc5bdb0b63028188b55 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 22 Aug 2025 21:38:36 +0200 Subject: fix tests --- src/str.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/str.c b/src/str.c index 2899ca9..7efc684 100644 --- a/src/str.c +++ b/src/str.c @@ -41,3 +41,5 @@ StrView Str_view(byte *data, size len) { i32 StrView_fprint(FILE *w, StrView s) { return fprintf(w, "%.*s", (i32)s.len, s.data); } + +Str StrView_copy(Arena *a, StrView s) { return Str_copy(a, s.data, s.len); } -- cgit v1.3