diff options
Diffstat (limited to 'ft_lstadd_back.c')
| -rw-r--r-- | ft_lstadd_back.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ft_lstadd_back.c b/ft_lstadd_back.c deleted file mode 100644 index e2cbf2a..0000000 --- a/ft_lstadd_back.c +++ /dev/null @@ -1,17 +0,0 @@ -#include <stdlib.h> -#include "libft.h" - -void ft_lstadd_back(t_list **alst, t_list *new) -{ - t_list *cursor; - - if (*alst == NULL) - { - *alst = new; - return ; - } - cursor = *alst; - while (cursor->next != NULL) - cursor = cursor->next; - cursor->next = new; -} |
