diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-24 17:57:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-24 17:57:20 +0100 |
commit | 6776a1f3491663c85480326e0d01f9a6c5455bbd (patch) | |
tree | 035435a20e933c43b192552a5b3f766fe55131e5 /src/ft_free_words.c | |
parent | ft_split redone (diff) | |
download | 42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.gz 42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.bz2 42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.xz 42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.tar.zst 42-cub3d-6776a1f3491663c85480326e0d01f9a6c5455bbd.zip |
Tons of changes
Diffstat (limited to 'src/ft_free_words.c')
-rw-r--r-- | src/ft_free_words.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ft_free_words.c b/src/ft_free_words.c new file mode 100644 index 0000000..3231791 --- /dev/null +++ b/src/ft_free_words.c @@ -0,0 +1,15 @@ +#include <libft.h> + +void +ft_free_words(char **words) +{ + size_t i; + + i = 0; + while (words[i]) + { + ft_memdel(words[i]); + i++; + } + ft_memdel(words); +} |