diff options
author | quou <quou@disroot.org> | 2024-12-22 22:17:35 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-22 22:17:35 +1100 |
commit | 82767020e84ec8c1af2e3817fc7efede5497c82d (patch) | |
tree | d3cf018092c7a56bfafedfc2e9d904bd908b91aa /qstd/str.h | |
parent | 995b39e366e3826b19e5197e2c954d1f11ff5093 (diff) |
add some string functions
Diffstat (limited to 'qstd/str.h')
-rw-r--r-- | qstd/str.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |