-
-
Save ayaderaghul/dcd828f53cb215d8c163b5c73beed173 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ft_list.h" | |
void ft_list_clear(t_list **begin_list) | |
{ | |
t_list *tmp; | |
if (&*begin_list == 0) | |
return ; | |
while (*begin_list->next) | |
{ | |
tmp = (*begin_list)->next; | |
(*begin_list)->next = 0; | |
*begin_list = tmp; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment