diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-09-30 10:57:32 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-10 10:03:17 +0200 |
| commit | 3614dd5811ebb0b7286e7ad8b66b4ef2ea6cc9c4 (patch) | |
| tree | cbd2c9f187d6300ae8f0d7abe8b04572f03b3425 /array.h | |
| parent | 78c4116bbcb812a8ecc40bf8a233cf9562229ff3 (diff) | |
| download | vis-3614dd5811ebb0b7286e7ad8b66b4ef2ea6cc9c4.tar.gz vis-3614dd5811ebb0b7286e7ad8b66b4ef2ea6cc9c4.tar.xz | |
array: mark array_get_ptr argument as const
Diffstat (limited to 'array.h')
| -rw-r--r-- | array.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ void *array_get(const Array*, size_t idx); */ bool array_set(Array*, size_t idx, void *item); /** Dereference pointer stored in array element. */ -void *array_get_ptr(Array*, size_t idx); +void *array_get_ptr(const Array*, size_t idx); /** Store the address to which ``item`` points to into the array. */ bool array_set_ptr(Array*, size_t idx, void *item); /** Add element to the end of the array. */ |
