aboutsummaryrefslogtreecommitdiff
path: root/collections/vector/vector.h
diff options
context:
space:
mode:
authorTucker Evans <tucker@tuckerevans.com>2020-07-03 00:28:23 -0400
committerTucker Evans <tucker@tuckerevans.com>2020-07-04 22:57:39 -0400
commitaeee67bdda0e0f8834cbd3f65da99e3c79f69f65 (patch)
tree6cba6fc3ce2622f425e85a66e192d0d9e0647f89 /collections/vector/vector.h
parent7ed6d089f5533904ac556edac4accc7ef9a8badc (diff)
Fix organize function order in vector docs and src
Functions now ordered roughly to what they do/deal with.
Diffstat (limited to 'collections/vector/vector.h')
-rw-r--r--collections/vector/vector.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/collections/vector/vector.h b/collections/vector/vector.h
index 229b4b0..5ab3dc3 100644
--- a/collections/vector/vector.h
+++ b/collections/vector/vector.h
@@ -3,14 +3,22 @@
typedef struct vector vec;
+/*constructors*/
vec* vec_new();
vec* vec_with_capacity(int);
+
+/*management*/
int vec_size(vec*);
+vec* vec_cp(vec*);
+void vec_print(vec*, char* (void*));
+
+/*data*/
void vec_push(vec*, void*);
-void* vec_index(vec*, int);
void* vec_pop(vec*);
-void vec_free(vec*);
+
+void* vec_index(vec*, int);
+
+/*memory*/
void vec_clear(vec*);
-void vec_print(vec*, char* (void*));
-vec* vec_cp(vec*);
+void vec_free(vec*);
#endif