/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstadd_front.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:06:40 by joelecle #+# #+# */ /* Updated: 2020/02/14 17:06:40 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include void ft_lstadd_front(t_list **alst, t_list *new) { if (!alst || !new) return ; new->next = *alst; *alst = new; }