data_structures
list_remove_last.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* list_unlink_last.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/17 01:38:22 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_last(alst));
19 }
s_list
Doubly-linked list of generic items.
Definition: list.h:54
list_remove_last
void list_remove_last(t_list *alst)
Removes the last item in the list.
Definition: list_remove_last.c:16
s_type::del
void(* del)(void *)
A function pointer used to free the memory taken by the data type.
Definition: types.h:51
s_list::type
const t_type * type
The type of items in this list.
Definition: list.h:59
list.h