bonus: ft_lstadd

This commit is contained in:
Jack Halford 2016-08-28 20:24:18 +02:00
parent 944fbdbef5
commit da29c5e823

10
libftasm/ft_lstadd.c Normal file
View file

@ -0,0 +1,10 @@
#include "libft.h"
void ft_lstadd(t_list **alst, t_list *new)
{
if (new)
{
new->next = *alst;
*alst = new;
}
}