diff options
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); +} |