From da29c5e8236a09617ee338593335a06442f6b540 Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Sun, 28 Aug 2016 20:24:18 +0200 Subject: [PATCH] bonus: ft_lstadd --- libftasm/ft_lstadd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libftasm/ft_lstadd.c diff --git a/libftasm/ft_lstadd.c b/libftasm/ft_lstadd.c new file mode 100644 index 00000000..068fdaf3 --- /dev/null +++ b/libftasm/ft_lstadd.c @@ -0,0 +1,10 @@ +#include "libft.h" + +void ft_lstadd(t_list **alst, t_list *new) +{ + if (new) + { + new->next = *alst; + *alst = new; + } +}