From 82767020e84ec8c1af2e3817fc7efede5497c82d Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 22 Dec 2024 22:17:35 +1100 Subject: add some string functions --- qstd/str.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qstd/str.h') 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 #include +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 -- cgit v1.2.3-54-g00ecf