1array_get(3)               Library Functions Manual               array_get(3)
2
3
4

NAME

6       array_get - get pointer to nth element in array
7

SYNTAX

9       #include <array.h>
10
11       void* array_get(array* x, uint64 membersize, int64 pos);
12
13         array x;
14         int64 pos;
15         t* p = array_get(&x,sizeof(t),pos);
16
17

DESCRIPTION

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

SEE ALSO

26       array_allocate(3), array_fail(3), array_start(3)
27
28
29
30                                                                  array_get(3)
Impressum