summaryrefslogtreecommitdiff
path: root/qstd/str.h
blob: 308e92d0bd85fc767525839b571a771d05b358d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef str_h
#define str_h

#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