summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/strvec.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/strvec.h b/include/strvec.h
new file mode 100644
index 0000000..21624e9
--- /dev/null
+++ b/include/strvec.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "allocator.h"
+
+#include <stdlib.h>
+
+struct strvec;
+
+void strvec_init(struct strvec *strvec, size_t cap, struct allocator *allocator);
+void strvec_deinit(struct strvec *strvec);
+
+struct strvec *strvec_alloc(size_t reserved, struct allocator *allocator);
+void strvec_free(struct strvec *strvec);
+
+