From 161e0f73c5f809c308240104c1763f8cec02a9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 Sep 2020 10:55:43 +0200 Subject: array: mark array_length argument as const --- array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'array.h') diff --git a/array.h b/array.h index d55af28..fa26a4e 100644 --- a/array.h +++ b/array.h @@ -91,7 +91,7 @@ bool array_add_ptr(Array*, void *item); */ bool array_remove(Array*, size_t idx); /** Number of elements currently stored in the array. */ -size_t array_length(Array*); +size_t array_length(const Array*); /** Number of elements which can be stored without enlarging the array. */ size_t array_capacity(Array*); /** Remove all elements with index greater or equal to ``length``, keep allocated memory. */ -- cgit v1.2.3