From 462e664d0fdfbe2e9eae5c7e093c5a23b202dae8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:11:10 +0200 Subject: Norm update --- libft/src/ft_lstadd_front.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_lstadd_front.c') diff --git a/libft/src/ft_lstadd_front.c b/libft/src/ft_lstadd_front.c index fac38cc..6e4e725 100644 --- a/libft/src/ft_lstadd_front.c +++ b/libft/src/ft_lstadd_front.c @@ -11,12 +11,14 @@ /* ************************************************************************** */ #include +#include -void - ft_lstadd_front(t_list **alst, t_list *new) +void ft_lstadd_front(t_list **alst, t_list *new) { - if (!alst || !new) + if (alst == NULL || new == NULL) + { return ; + } new->next = *alst; *alst = new; } -- cgit v1.2.3