From 0daacec366aab889b2b24d7fc6edebe1370d7e28 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 20 Apr 2020 19:21:23 +0200 Subject: Linked list not working but ok --- libft/src/ft_delwords.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libft/src/ft_delwords.c (limited to 'libft/src/ft_delwords.c') diff --git a/libft/src/ft_delwords.c b/libft/src/ft_delwords.c new file mode 100644 index 0000000..79c671d --- /dev/null +++ b/libft/src/ft_delwords.c @@ -0,0 +1,28 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_delwords.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include +#include + +void + ft_delwords(char **words) +{ + size_t i; + + i = 0; + while (words[i]) + { + ft_memdel((void*)&words[i]); + i++; + } + ft_memdel((void*)&words); +} -- cgit v1.2.3