qb_array_index3
Get an element at a particular index.
Usage
#include <qb/qbarray.h>
int32_t qb_array_index(
qb_array_t *a, /* array instance */
/*
* the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range
*/
int32_t idx,
void **element_out /* the pointer to the element data */
);
Params
a array instance
idx the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range
element_out the pointer to the element data
Overview
Return value
(0 == success, else -errno)
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.