data_structures
|
#include "list.h"
Go to the source code of this file.
Functions | |
void * | list_peek (const t_list *alst, size_t index) |
Returns the item at the specified position in the list. More... | |
void* list_peek | ( | const t_list * | alst, |
size_t | index | ||
) |
Returns the item at the specified position in the list.
The item is kept in the list.
NULL
if the list is empty. O(N/2)
in the number of items in the worst case. Definition at line 16 of file list_peek.c.