/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_lstadd_front.c :+: :+: */ /* +:+ */ /* By: djonker +#+ */ /* +#+ */ /* Created: 2020/11/13 04:38:37 by djonker #+# #+# */ /* Updated: 2023/10/18 16:59:52 by houtworm ######## odam.nl */ /* */ /* ************************************************************************** */ #include "../libft.h" void ft_lstadd_front(t_list **lst, t_list *new) { if (lst && new) { if (*lst) new->next = *lst; *lst = new; } }