NeoMutt  2024-04-25-1-g3de005
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
Linear array API

API to store contiguous elements.

Functions

Function Description Links
ARRAY_ADD() Add an element at the end of the array
ARRAY_CAPACITY() The number of elements the array can store without reallocation
ARRAY_ELEM_SIZE() Number of bytes occupied by an element of this array
ARRAY_EMPTY() Check if an array is empty
ARRAY_FIRST() Convenience method to get the first element
ARRAY_FOREACH() Iterate over all elements of the array
ARRAY_FOREACH_FROM() Iterate from an index to the end
ARRAY_FOREACH_FROM_TO() Iterate between two indexes
ARRAY_FOREACH_TO() Iterate from the beginning to an index
ARRAY_FREE() Release all memory
ARRAY_GET() Return the element at index
ARRAY_HEAD() Define a named struct for arrays of elements of a certain type
ARRAY_HEADROOM() Additional number of elements to reserve, to prevent frequent reallocations
ARRAY_HEAD_INITIALIZER() Static initializer for arrays
ARRAY_IDX() Return the index of an element of the array
ARRAY_INIT() Initialize an array
ARRAY_LAST() Convenience method to get the last element
ARRAY_REMOVE() Remove an entry from the array, shifting down the subsequent entries
ARRAY_RESERVE() Reserve memory for the array
ARRAY_SET() Set an element in the array
ARRAY_SHRINK() Mark a number of slots at the end of the array as unused
ARRAY_SIZE() The number of elements stored
ARRAY_SORT() Sort an array