/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_free_words.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:47 by joelecle #+# #+# */ /* Updated: 2020/02/14 17:28:47 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include uint8_t ft_free_sprites_path(char **sprites) { uint8_t i; i = 0; while (i < 9) { ft_memdel((void*)&sprites[i]); i++; } ft_memdel((void*)&sprites); return (0); } uint8_t ft_free_words(char **words) { size_t i; i = 0; while (words[i]) { ft_memdel((void*)&words[i]); i++; } ft_memdel((void*)&words); return (0); }