ft_list_size
Subject
Assignment name : ft_list_size
Expected files : ft_list_size.c, ft_list.h
Allowed functions:
--------------------------------------------------------------------------------
Write a function that returns the number of elements in the linked list that's
passed to it.
It must be declared as follows:
int ft_list_size(t_list *begin_list);
You must use the following structure, and turn it in as a file called
ft_list.h:
typedef struct s_list
{
struct s_list *next;
void *data;
} t_list;
Commented solution
Don't forget to turn in your ft_list.h
file as well
Last updated
Was this helpful?