fix loop list

This commit is contained in:
David Gailleton
2025-11-11 15:29:28 +01:00
parent 03ea9975eb
commit a3e7a3d556
3 changed files with 26 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/09 15:06:49 by dgaillet #+# #+# */
/* Updated: 2025/11/10 18:18:38 by dgaillet ### ########lyon.fr */
/* Updated: 2025/11/11 15:20:02 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
@@ -21,8 +21,6 @@ void ft_lstadd_back(t_list **lst, t_list *new)
*lst = new;
return ;
}
temp = *lst;
while (temp->next)
temp = temp->next;
temp = ft_lstlast(*lst);
temp->next = new;
}