1QB_ARRAY_INDEX(3) libqb Programmer's Manual QB_ARRAY_INDEX(3)
2
3
4
6 qb_array_index - Get an element at a particular index.
7
9 #include <qb/qbarray.h>
10
11 int32_t qb_array_index(
12 qb_array_t *a,
13 int32_t idx,
14 void **element_out
15 );
16
18 a array instance
19
20 idx the index, valid in [0,
21
22 element_out the pointer to the element data
23
26 (0 == success, else -errno)
27
29 qb_array_elems_per_bin_get(3), qb_array_new_bin_cb_set(3),
30 qb_array_create(3), qb_array_grow(3), qb_array_num_bins_get(3),
31 qb_array_create_2(3), qb_array_free(3)
32
34 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
35
36
37
38LIBQB 2020-07-30 QB_ARRAY_INDEX(3)