array_get - Man Page
get pointer to nth element in array
Syntax
#include <array.h>
void* array_get(array* x, uint64 membersize, int64 pos);
array x;
int64 pos;
t* p = array_get(&x,sizeof(t),pos);
Description
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.
See Also
Referenced By
array(3), array_allocate(3), array_bytes(3), array_cat(3), array_cat0(3), array_catb(3), array_cate(3), array_cats(3), array_cats0(3), array_equal(3), array_length(3), array_reset(3), array_start(3), array_trunc(3), array_truncate(3).