diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-03-11 22:37:43 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-03-11 22:37:43 +0300 |
| commit | a854e4cfa450590753171fbbe4dde8da4f504abd (patch) | |
| tree | fb1d91910e5a86a6460654af289fbb4b3ef707b7 /lib/arena_strings.h | |
| parent | 74ab2f6b89ceb2af34524386d6003746570d2b03 (diff) | |
Move everything to the lib folder
Diffstat (limited to 'lib/arena_strings.h')
| -rw-r--r-- | lib/arena_strings.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/arena_strings.h b/lib/arena_strings.h new file mode 100644 index 0000000..85ffda3 --- /dev/null +++ b/lib/arena_strings.h @@ -0,0 +1,17 @@ +#ifndef ARENA_STRINGS_H_ +#define ARENA_STRINGS_H_ + +#include "arena.h" +#include "const_strings.h" + +typedef struct { + const_string *data; + size_t len; + size_t cap; +} const_string_da; + +const_string arena_cs_append(arena *a, const_string dst, const_string src); +const_string arena_cs_init(arena *a, int len); +const_string arena_cs_concat(arena *a, const_string_da strings, const_string sep); + +#endif // ARENA_STRINGS_H_ |
