aboutsummaryrefslogtreecommitdiff
path: root/string.h
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 21:46:41 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 21:46:41 +0200
commit413cb3b0c5c70d60eee212c72afed9b5c659b6d8 (patch)
treea509f8d91cab894cc02929cc1747db78ac8ac841 /string.h
parenta6e3e5aaf3af1fa05bc54b793f45d66b3e3f4a05 (diff)
refactor: Vec on arena
Diffstat (limited to 'string.h')
-rw-r--r--string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/string.h b/string.h
index a984929..2785e99 100644
--- a/string.h
+++ b/string.h
@@ -1,5 +1,6 @@
#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
#include "memory.h"
#include "types.h"
@@ -15,5 +16,5 @@ typedef struct {
int Str_equals(Str a, Str b);
uint64_t Str_hash64(Str s);
Str *Str_copy(Arena *a, byte *data, size len);
-void Str_print(Str s);
+int Str_fprint(FILE *w, Str s);
#endif