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
15
void
ft_lstadd_front
(
t_list
**lst,
t_list
*node)
16
{
17
if
(!node || !lst)
18
return ;
19
node->
next
= *lst;
20
*lst = node;
21
}
ft_lstadd_front
void ft_lstadd_front(t_list **lst, t_list *node)
List add front.
Definition
ft_lstadd_front.c:15
libft.h
s_list
Definition
libft.h:22
s_list::next
struct s_list * next
Definition
libft.h:24
src
ft_lstadd_front.c
Generated by
1.9.7