blob: 6f5e7cf3d9960a5ee0164b1e05177cdad0e2d427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ref_ft_list_size.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 03:20:11 by cacharle #+# #+# */
/* Updated: 2020/11/07 17:17:28 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include "libasm_test.h"
int ref_ft_list_size(t_list *begin_list)
{
int counter;
counter = 0;
while (begin_list != NULL)
{
counter++;
begin_list = begin_list->next;
}
return counter;
}
|