From dc7255fdb45587ddd90db87e3c3b971ebd8edef0 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 18:54:03 +0200 Subject: Some updates --- libft/src/ft_delwords.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_delwords.c') diff --git a/libft/src/ft_delwords.c b/libft/src/ft_delwords.c index 79c671d..ba952f7 100644 --- a/libft/src/ft_delwords.c +++ b/libft/src/ft_delwords.c @@ -13,13 +13,12 @@ #include #include -void - ft_delwords(char **words) +void ft_delwords(char **words) { size_t i; i = 0; - while (words[i]) + while (words[i] != NULL) { ft_memdel((void*)&words[i]); i++; -- cgit v1.2.3