/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstadd_front_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/22 14:48:11 by narnaud #+# #+# */ /* Updated: 2022/03/24 09:22:48 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "../libft.h" void ft_lstadd_front(t_list **alst, t_list *new) { if (!alst || !new) return ; if (*alst) new->next = *alst; *alst = new; }