/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstadd_front_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/09 09:02:25 by cacharle #+# #+# */ /* Updated: 2019/10/17 09:06:38 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_lstadd_front(t_list **alst, t_list *new) { if (alst == NULL) return ; new->next = *alst; *alst = new; }