summaryrefslogtreecommitdiff
path: root/qstd/str.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-22 22:17:35 +1100
committerquou <quou@disroot.org>2024-12-22 22:17:35 +1100
commit82767020e84ec8c1af2e3817fc7efede5497c82d (patch)
treed3cf018092c7a56bfafedfc2e9d904bd908b91aa /qstd/str.h
parent995b39e366e3826b19e5197e2c954d1f11ff5093 (diff)
add some string functions
Diffstat (limited to 'qstd/str.h')
-rw-r--r--qstd/str.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qstd/str.h b/qstd/str.h
index da9bf36..308e92d 100644
--- a/qstd/str.h
+++ b/qstd/str.h
@@ -4,7 +4,14 @@
#include <stddef.h>
#include <stdint.h>
+struct Arena;
+
uint64_t fnv1a64(uint8_t* buf, size_t size);
uint32_t hash_string(const char* s);
+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);
+
#endif