Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
list_life_cycle.c File Reference
#include "libft.h"
#include <stdlib.h>
Include dependency graph for list_life_cycle.c:

Functions

bool list_add_start (t_list *list, void *new_content)
 Adds a new element at the start of the list.
 
bool list_add_end (t_list *list, void *new_content)
 Adds a new element at the end of the list.
 
void list_rm (t_list *list, t_node *node, void(*del_content)(void *))
 Removes a specific node from the list.
 
void list_rm_all (t_list *list, void(*del_content)(void *))
 Removes all nodes from the list.