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

Go to the source code of this file.

Functions

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

Function Documentation

◆ list_unlink_last()

void* list_unlink_last ( t_list alst)

Removes the last item in the list and returns it.

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

Definition at line 16 of file list_unlink_last.c.