qb_array_index(3)

qb_array_index3

Get an element at a particular index.

Usage

#include <qb/qbarray.h>

int32_t qb_array_index(
    qb_array_t   *a,            /* array instance */
    /*
     * the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range
     */
    int32_t       idx,
    void        **element_out   /* the pointer to the element data */
);

Params

a array instance

idx the index, valid in [0, QB_ARRAY_MAX_ELEMENTS) range

element_out the pointer to the element data

Overview

Return value

(0 == success, else -errno)

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From libqb 2.0.10-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.