logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

qb_array_index - Get an element at a particular index.

Description

Name

       qb_array_index - Get an element at a particular index.

Params

aarrayinstanceidxtheindex,validin[0,QB_ARRAY_MAX_ELEMENTS)rangeelement_outthepointertotheelementdata

Return Value

       (0 == success, else -errno)

See Also

qb_array_elems_per_bin_get(3), qb_array_new_bin_cb_set(3), qb_array_create(3), qb_array_grow(3),
       qb_array_num_bins_get(3), qb_array_create_2(3), qb_array_free(3)

Synopsis

#include<qb/qbarray.h>int32_tqb_array_index(
           qb_array_t*a,            /* array instance */
           /*
            * the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range
            */
           int32_tidx,
           void**element_out   /* the pointer to the element data */
       );

See Also