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
8
10 #include <qb/qbarray.h>
11
12 int32_t qb_array_index(
13 qb_array_t *a, /* array instance */
14 int32_t idx, /* the index, valid in [0, */
15 void **element_out /* the pointer to the element data */
16 );
17
19 a array instance
20
21 idx the index, valid in [0,
22
23 element_out the pointer to the element data
24
27 (0 == success, else -errno)
28
30 qb_array_elems_per_bin_get(3), qb_array_new_bin_cb_set(3),
31 qb_array_create(3), qb_array_grow(3), qb_array_num_bins_get(3),
32 qb_array_create_2(3), qb_array_free(3)
33
35 Copyright (C) 2010-2020 Red Hat, Inc.
36
37
38
39LIBQB 2022-03-23 QB_ARRAY_INDEX(3)