array_get(3)

array_get3

Get pointer to nth element in array

Usage

#include <libowfat/array.h>

void* array_get(array* x, uint64 membersize, int64 pos);

array x;
int64 pos;
t* p = array_get(&x,sizeof(t),pos);

Overview

array_get is similar to array_allocate, but it does not allocate any extra bytes, and it does not initialize any extra bytes. It returns 0 if x is unallocated, for example, or if fewer than (pos+1)*sizeof(t) bytes are initialized.

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.