aboutsummaryrefslogtreecommitdiff
path: root/src/str.c
diff options
context:
space:
mode:
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); }