aboutsummaryrefslogtreecommitdiff
path: root/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'array.h')
-rw-r--r--array.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/array.h b/array.h
index bee8725..21036a9 100644
--- a/array.h
+++ b/array.h
@@ -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