libft
Loading...
Searching...
No Matches
ft_lstadd_front.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_lstadd_front.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tspoof <tspoof@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2022/11/06 18:41:41 by tspoof #+# #+# */
9/* Updated: 2023/02/14 14:57:11 by tspoof ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15void ft_lstadd_front(t_list **lst, t_list *node)
16{
17 if (!node || !lst)
18 return ;
19 node->next = *lst;
20 *lst = node;
21}
void ft_lstadd_front(t_list **lst, t_list *node)
List add front.
Definition libft.h:22
struct s_list * next
Definition libft.h:24