From e5f3617301d8a1417528c1d6cd2068030144abe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 18 Apr 2017 19:02:24 +0200 Subject: array: implement array_capacity --- array.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'array.h') 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 -- cgit v1.2.3