diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-29 18:54:03 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-29 18:54:03 +0200 |
commit | dc7255fdb45587ddd90db87e3c3b971ebd8edef0 (patch) | |
tree | ffda6630195437ea771065d6d42f5fc84b35eea5 /libft/src/ft_delwords.c | |
parent | Atoi update (diff) | |
download | 42-minishell-dc7255fdb45587ddd90db87e3c3b971ebd8edef0.tar.gz 42-minishell-dc7255fdb45587ddd90db87e3c3b971ebd8edef0.tar.bz2 42-minishell-dc7255fdb45587ddd90db87e3c3b971ebd8edef0.tar.xz 42-minishell-dc7255fdb45587ddd90db87e3c3b971ebd8edef0.tar.zst 42-minishell-dc7255fdb45587ddd90db87e3c3b971ebd8edef0.zip |
Some updates
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_delwords.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <libft.h> #include <stddef.h> -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++; |