.\" Automatically generated man page, do not edit .TH QB_ARRAY_INDEX 3 2023-07-21 "LIBQB" "libqb Programmer's Manual" .SH NAME qb_array_index \- Get an element at a particular index. .SH SYNOPSIS .nf .B #include .sp \fBint32_t qb_array_index\fP( \fBqb_array_t *\fP\fIa\fP,\fR /* array instance */ \fP /* * the index, valid in [0, \fBQB_ARRAY_MAX_ELEMENTS\fP) range */ \fBint32_t \fP\fIidx\fP, \fBvoid **\fP\fIelement_out\fP\fR /* the pointer to the element data */ ); .fi .SH PARAMS \fBa \fP\fIarray instance \fP .PP \fBidx \fP\fIthe index, valid in [0, \fBQB_ARRAY_MAX_ELEMENTS\fP) range \fP .PP \fBelement_out \fP\fIthe pointer to the element data \fP .PP .SH DESCRIPTION .RE .SH RETURN VALUE .PP (0 == success, else -errno) .PP .SH SEE ALSO .PP .nh .ad l \fIqb_array_elems_per_bin_get\fR(3), \fIqb_array_new_bin_cb_set\fR(3), \fIqb_array_create\fR(3), \fIqb_array_grow\fR(3), \fIqb_array_num_bins_get\fR(3), \fIqb_array_create_2\fR(3), \fIqb_array_free\fR(3) .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2020 Red Hat, Inc.