data_structures
list_remove_first.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* list_unlink_first.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/16 22:55:51 by unite #+# #+# */
10 /* Updated: 2020/07/21 22:32:38 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "list.h"
15 
17 {
18  alst->type->del(list_unlink_first(alst));
19 }
s_list
Doubly-linked list of generic items.
Definition: list.h:54
s_type::del
void(* del)(void *)
A function pointer used to free the memory taken by the data type.
Definition: types.h:51
list_remove_first
void list_remove_first(t_list *alst)
Removes the first item in the list.
Definition: list_remove_first.c:16
s_list::type
const t_type * type
The type of items in this list.
Definition: list.h:59
list.h