bonus: ft_lstadd

This commit is contained in:
Jack Halford 2016-08-28 20:24:18 +02:00
parent 572a71e68b
commit fdeff2ca9b

10
libft/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;
}
}