not quite there yet but nearly ^^

WIP for the algorithm not to pass on previously used node
This commit is contained in:
Tanguy MAZE
2019-04-01 19:06:19 +02:00
parent 4e2fc9f19e
commit 15669b7402
5 changed files with 114 additions and 56 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/27 14:56:55 by tmaze #+# #+# */
/* Updated: 2019/03/31 17:53:47 by tmaze ### ########.fr */
/* Updated: 2019/04/01 17:37:51 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -30,7 +30,7 @@ void lst_inddel(t_ind **lst)
{
t_ind *tmp;
while (*lst != NULL)
while (lst && *lst != NULL)
{
tmp = *lst;
*lst = (*lst)->next;