diff options
Diffstat (limited to 'collections/vector/vector.c')
-rw-r--r-- | collections/vector/vector.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/collections/vector/vector.c b/collections/vector/vector.c index 23e5c47..b8f83de 100644 --- a/collections/vector/vector.c +++ b/collections/vector/vector.c @@ -63,6 +63,16 @@ vec *root; return root->end; } +int vec_capacity(root) +vec *root; +{ + if (!root) { + return -1; + } + + return root->limit; +} + void vec_resize(root) vec *root; { |