1QB_ARRAY_INDEX(3)          libqb Programmer's Manual         QB_ARRAY_INDEX(3)
2
3
4

NAME

6       qb_array_index - Get an element at a particular index.
7
8

SYNOPSIS

10       #include <qb/qbarray.h>
11
12       int32_t qb_array_index(
13           qb_array_t   *a,            /* array instance */
14           /*
15            * the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range
16            */
17           int32_t       idx,
18           void        **element_out   /* the pointer to the element data */
19       );
20

PARAMS

22       a           array instance
23
24       idx         the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range
25
26       element_out the pointer to the element data
27

DESCRIPTION

RETURN VALUE

30       (0 == success, else -errno)
31

SEE ALSO

33       qb_array_elems_per_bin_get(3), qb_array_new_bin_cb_set(3),
34       qb_array_create(3), qb_array_grow(3), qb_array_num_bins_get(3),
35       qb_array_create_2(3), qb_array_free(3)
36
38       Copyright (C) 2010-2020 Red Hat, Inc.
39
40
41
42LIBQB                             2023-07-21                 QB_ARRAY_INDEX(3)
Impressum