mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
20 lines
1 KiB
C
20 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstadd_front_bonus.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tchampio <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/10/21 13:27:19 by tchampio #+# #+# */
|
|
/* Updated: 2024/10/22 13:02:46 by tchampio ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "../../includes/libft.h"
|
|
#include <stdlib.h>
|
|
|
|
void ft_lstadd_front(t_list **lst, t_list *new)
|
|
{
|
|
new->next = *lst;
|
|
*lst = new;
|
|
}
|