|
cdcontainers
0.1.1
Library of data containers and collections for C programming language.
|
Functions | |
| static void * | cdc_circular_array_get (struct cdc_circular_array *d, size_t index) |
| Returns an element at index position in the circular array. More... | |
| enum cdc_stat | cdc_circular_array_at (struct cdc_circular_array *d, size_t index, void **elem) |
| Writes to pointer an element from specified position in the circular array. Bounds checking is performed. More... | |
| static void * | cdc_circular_array_front (struct cdc_circular_array *d) |
| Returns a first element in the circular array. More... | |
| static void * | cdc_circular_array_back (struct cdc_circular_array *d) |
| Returns a last element in the circular array. More... | |
|
inlinestatic |
Returns an element at index position in the circular array.
| [in] | d | - cdc_circular_array |
| [in] | index | - index of an element to return |
| enum cdc_stat cdc_circular_array_at | ( | struct cdc_circular_array * | d, |
| size_t | index, | ||
| void ** | elem | ||
| ) |
Writes to pointer an element from specified position in the circular array. Bounds checking is performed.
| [in] | d | - cdc_circular_array |
| [in] | index | - index of an element to write at elem |
| [out] | elem | - pointer where an element will be written |
|
inlinestatic |
Returns a first element in the circular array.
| [in] | d | - cdc_circular_array |
|
inlinestatic |
Returns a last element in the circular array.
| [in] | d | - cdc_circular_array |
1.8.13