/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstadd_front.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tosuman +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/14 11:57:15 by tosuman #+# #+# */ /* Updated: 2023/06/14 11:57:15 by tosuman ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_lstadd_front(t_list **lst, t_list *new) { if (lst) { if (*lst) new->next = *lst; *lst = new; } }