-
Notifications
You must be signed in to change notification settings - Fork 2
/
ft_lstlink.c
21 lines (19 loc) · 1023 Bytes
/
ft_lstlink.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstlink.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rlambert <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/07 15:54:56 by rlambert #+# #+# */
/* Updated: 2015/01/26 17:03:59 by rlambert ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstlink(t_list **alst, t_list *new)
{
if (new == NULL)
return ;
new->next = *alst;
*alst = new;
}