#include "libft.h" #include void ft_lstclear(t_list **lst) { t_list *tmp; while (lst && *lst) { tmp = (*lst)->next; free(*lst); *lst = tmp; } }