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

Go to the source code of this file.

Functions

void * list_unlink_first (t_list *alst)
 Removes the first item in the list and returns it. More...
 

Function Documentation

◆ list_unlink_first()

void* list_unlink_first ( t_list alst)

Removes the first item in the list and returns it.

Returns
The first item in the list, or NULL if the list is empty.

Definition at line 16 of file list_unlink_first.c.