diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-09-30 10:55:43 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-10 10:03:17 +0200 |
| commit | 161e0f73c5f809c308240104c1763f8cec02a9f4 (patch) | |
| tree | 3bd5fbdea8403d7bfedef8b649072be0626a9b91 /array.h | |
| parent | 6c1f442d9a0526eeb109bc980ac062e430cdc399 (diff) | |
| download | vis-161e0f73c5f809c308240104c1763f8cec02a9f4.tar.gz vis-161e0f73c5f809c308240104c1763f8cec02a9f4.tar.xz | |
array: mark array_length argument as const
Diffstat (limited to 'array.h')
| -rw-r--r-- | array.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |
