data_structures
list_size.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* list_size.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2020/07/16 23:13:31 by unite #+# #+# */
10 /* Updated: 2020/07/18 16:36:36 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "list.h"
15 
16 size_t list_size(const t_list *alst)
17 {
18  return (alst->size);
19 }
s_list
Doubly-linked list of generic items.
Definition: list.h:54
s_list::size
size_t size
The number of items in the list.
Definition: list.h:58
list.h
list_size
size_t list_size(const t_list *alst)
Returns the number of items in this list.
Definition: list_size.c:16