summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-05-13 16:16:45 +0200
committerLouis Burda <quent.burda@gmail.com>2023-05-13 16:16:45 +0200
commit110b99563e127abe1439fffb0084400b47eea5b3 (patch)
treeded22ce24e5d0545b287817661267de34e9810fd /include
downloadlibstrvec-c-110b99563e127abe1439fffb0084400b47eea5b3.tar.gz
libstrvec-c-110b99563e127abe1439fffb0084400b47eea5b3.zip
Prelim push
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);
+
+