aboutsummaryrefslogtreecommitdiff
path: root/src/str.c
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-08-22 21:38:36 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-08-27 11:43:09 +0200
commit6836db9b00d4f13a78a53cc5bdb0b63028188b55 (patch)
treef9733cfeba75fb95ac48ce4f3b61b594365da7a1 /src/str.c
parent07dbb6538ca55e69a33ada6761e749f4ee06affe (diff)
fix tests
Diffstat (limited to 'src/str.c')
-rw-r--r--src/str.c2
1 files changed, 2 insertions, 0 deletions
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); }