From 4832ab4b43a2e9fb72b1814b32421de1dba1edcb Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Fri, 3 Jul 2020 00:40:50 -0400 Subject: Add function to get capacity of a vector --- collections/vector/vector.h | 1 + 1 file changed, 1 insertion(+) (limited to 'collections/vector/vector.h') diff --git a/collections/vector/vector.h b/collections/vector/vector.h index 5ab3dc3..4bcb620 100644 --- a/collections/vector/vector.h +++ b/collections/vector/vector.h @@ -9,6 +9,7 @@ vec* vec_with_capacity(int); /*management*/ int vec_size(vec*); +int vec_capacity(vec*); vec* vec_cp(vec*); void vec_print(vec*, char* (void*)); -- cgit v1.1