data_structures
Functions
array_get.c File Reference
#include "array.h"
+ Include dependency graph for array_get.c:

Go to the source code of this file.

Functions

void * array_get (const t_array *array, size_t index)
 Returns the item at the specified position in this list. More...
 

Function Documentation

◆ array_get()

void* array_get ( const t_array array,
size_t  index 
)

Returns the item at the specified position in this list.

Returns
The item or NULL if the index is out of range.
Parameters
indexThe index (0-based counting)
Exceptions
EINVALIndex is out of range

Definition at line 16 of file array_get.c.