/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_lstadd_front.c |o_o || | */ /* +:+ */ /* By: djonker +#+ */ /* +#+ */ /* Created: 2020/11/13 04:38:37 by djonker #+# #+# */ /* Updated: 2023/03/03 16:12:15 by houtworm \___)=(___/ */ /* */ /* ************************************************************************** */ #include "../libft.h" void ft_lstadd_front(t_list **lst, t_list *new) { if (lst && new) { if (*lst) new->next = *lst; *lst = new; } }