aboutsummaryrefslogtreecommitdiff
path: root/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'vector.h')
-rw-r--r--vector.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/vector.h b/vector.h
new file mode 100644
index 0000000..0c7bdce
--- /dev/null
+++ b/vector.h
@@ -0,0 +1,16 @@
+#ifndef VECTOR_H
+#define VECTOR_H
+
+typedef struct vector vec;
+
+vec* vec_new();
+vec* vec_with_capacity(int);
+int vec_size(vec*);
+void vec_push(vec*, void*);
+void* vec_rmfirst(vec*);
+void* vec_index(vec*, int);
+void vec_free(vec*);
+void* vec_pop(vec*);
+void vec_print(vec*);
+vec* vec_cp(vec*);
+#endif