rename bonus exercices to _bonus

This commit is contained in:
David Gailleton
2025-11-10 17:42:35 +01:00
parent 9bcbc8084b
commit 729b6d3003
10 changed files with 12 additions and 14 deletions

28
ft_lstadd_back_bonus.c Normal file
View File

@@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstadd_back.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/09 15:06:49 by dgaillet #+# #+# */
/* Updated: 2025/11/09 15:21:07 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstadd_back(t_list **lst, t_list *new)
{
t_list *temp;
if (!(*lst))
{
*lst = new;
return ;
}
temp = *lst;
while (temp->next)
temp = temp->next;
temp->next = new;
}