/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_listlen.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: scebula +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/04/26 21:52:57 by scebula #+# #+# */ /* Updated: 2016/04/26 21:53:44 by scebula ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" size_t ft_listlen(t_list *list) { t_list *l; size_t i; i = 0; l = list; while (l) { i++; l = l->next; } return (i); }