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

NAME

6       iarray_get - get pointer to nth element in iarray
7

SYNTAX

9       #include <iarray.h>
10
11       void* iarray_get(iarray* x, size_t pos);
12
13         iarray x;
14         size_t pos;
15         t* p = iarray_get(&x,pos);
16
17

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

32       iarray_init(3), iarray_allocate(3), iarray_free(3)
33
34
35
36                                                                 iarray_get(3)
Impressum