aboutsummaryrefslogtreecommitdiff
path: root/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'array.h')
-rw-r--r--array.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/array.h b/array.h
index b369d68..5664f5a 100644
--- a/array.h
+++ b/array.h
@@ -58,5 +58,8 @@ size_t array_length(Array*);
size_t array_capacity(Array*);
/* remove all elements at index >= length, keep allocated memory */
bool array_truncate(Array*, size_t length);
+/* change length if it is less than the current capacity, newly
+ * accesible elements preserve their previous values */
+bool array_resize(Array*, size_t length);
#endif