summaryrefslogtreecommitdiff
path: root/qstd/str.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-30 12:18:55 +1100
committerquou <quou@disroot.org>2024-12-30 12:18:55 +1100
commit90eed5c3684a6dd751afc2bcb7ae0ac919c143a8 (patch)
treed8e275e1d45235b4053e33b934dd2fa3ad98ed9d /qstd/str.h
parent112680014408ab946ad56001dfe53a7035f82d2c (diff)
dup_string function that takes a heap
Diffstat (limited to 'qstd/str.h')
-rw-r--r--qstd/str.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qstd/str.h b/qstd/str.h
index 011fc27..8158554 100644
--- a/qstd/str.h
+++ b/qstd/str.h
@@ -5,6 +5,7 @@
#include <stdint.h>
struct Arena;
+struct Heap;
uint64_t fnv1a64(uint8_t* buf, size_t size);
uint64_t fnv1a64_2(uint64_t h, uint8_t* buf, size_t size);
@@ -14,5 +15,6 @@ int string_equal(const char* a, const char* b);
int string_copy(char* dst, const char* src);
int string_len(const char* s);
char* dup_string(struct Arena* a, const char* s);
+char* dup_stringh(struct Heap* h, const char* s);
#endif