diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-04-18 19:02:24 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-04-18 19:02:24 +0200 |
| commit | e5f3617301d8a1417528c1d6cd2068030144abe7 (patch) | |
| tree | 840ea0976d2bd3faca9c2591221a231ed0fa5295 /array.h | |
| parent | 915d673b3ca42312d505084e544ca48dde986c72 (diff) | |
| download | vis-e5f3617301d8a1417528c1d6cd2068030144abe7.tar.gz vis-e5f3617301d8a1417528c1d6cd2068030144abe7.tar.xz | |
array: implement array_capacity
Diffstat (limited to 'array.h')
| -rw-r--r-- | array.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,5 +54,7 @@ bool array_add_ptr(Array*, void *item); bool array_remove(Array*, size_t idx); /* return the number of elements currently stored in the array */ size_t array_length(Array*); +/* return the number of elements which can be stored without enlarging the array */ +size_t array_capacity(Array*); #endif |
