diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-07-03 00:40:50 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-07-04 22:57:41 -0400 |
commit | 4832ab4b43a2e9fb72b1814b32421de1dba1edcb (patch) | |
tree | 208864a5405ee24f882451ba79499f1edba6aa88 /collections/vector/vector.h | |
parent | aeee67bdda0e0f8834cbd3f65da99e3c79f69f65 (diff) |
Add function to get capacity of a vector
Diffstat (limited to 'collections/vector/vector.h')
-rw-r--r-- | collections/vector/vector.h | 1 |
1 files changed, 1 insertions, 0 deletions
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*)); |