/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstsize.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/22 14:49:32 by narnaud #+# #+# */ /* Updated: 2022/03/24 11:31:05 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "../libft.h" int ft_slst_size(t_slist *lst) { size_t lst_size; lst_size = 0; while (lst && ++lst_size) lst = lst->next; return (lst_size); }