aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLion Kortlepel <[email protected]>2026-01-15 00:28:30 +0100
committerLion Kortlepel <[email protected]>2026-01-15 00:28:30 +0100
commit0b6d6b70f171b18cad86c0ac8d79a2c849175324 (patch)
tree33fa0f9291aa4c6b99b53fb437ef2af6164ea190 /examples
downloadvec-0b6d6b70f171b18cad86c0ac8d79a2c849175324.tar.zst
vec-0b6d6b70f171b18cad86c0ac8d79a2c849175324.zip
initial commit
Diffstat (limited to 'examples')
-rw-r--r--examples/simple.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/simple.c b/examples/simple.c
new file mode 100644
index 0000000..74a8750
--- /dev/null
+++ b/examples/simple.c
@@ -0,0 +1,11 @@
+#include "ls_vec.h"
+
+LS_VEC_INLINE(int, int_vec)
+
+int main(void) {
+ int_vec vec;
+ int_vec_init(&vec);
+ int_vec_push(&vec, 12);
+ int_vec_clear(&vec);
+ return 0;
+}