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