bonus: ft_lstadd
This commit is contained in:
parent
944fbdbef5
commit
da29c5e823
1 changed files with 10 additions and 0 deletions
10
libftasm/ft_lstadd.c
Normal file
10
libftasm/ft_lstadd.c
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#include "libft.h"
|
||||||
|
|
||||||
|
void ft_lstadd(t_list **alst, t_list *new)
|
||||||
|
{
|
||||||
|
if (new)
|
||||||
|
{
|
||||||
|
new->next = *alst;
|
||||||
|
*alst = new;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue