array_get(3diet)

array_get3diet

Get pointer to nth element in array

Usage

#include <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

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.