iarray_get(3)

iarray_get3

Get pointer to nth element in iarray

Usage

#include <libowfat/iarray.h>

void* iarray_get(iarray* x, size_t pos);

iarray x;
size_t pos;
t* p = iarray_get(&x,pos);

Overview

iarray_get is similar to iarray_allocate, but it only works if the element has previously been allocated. If the element in the iarray is not there, this function will fail instead of manipulating the iarray. This also guarantees that there will be no locks, so this function returns in a deterministic time.

Return value

Return a pointer to the requested element. If there is no such element in the array, returns NULL.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.