22 lines
1018 B
C
22 lines
1018 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstadd_front.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tosuman <timo42@proton.me> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/06/14 11:57:15 by tosuman #+# #+# */
|
|
/* Updated: 2023/06/24 16:38:36 by tosuman ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_lstadd_front(t_list **lst, t_list *new)
|
|
{
|
|
if (!lst)
|
|
return ;
|
|
new->next = *lst;
|
|
*lst = new;
|
|
}
|