-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_lstadd_back.c
More file actions
21 lines (19 loc) · 1 KB
/
ft_lstadd_back.c
File metadata and controls
21 lines (19 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_lstadd_back.c :+: :+: */
/* +:+ */
/* By: ivork <ivork@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2020/11/08 21:11:53 by ivork #+# #+# */
/* Updated: 2020/11/22 16:58:50 by anonymous ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstadd_back(t_list **lst, t_list *new)
{
if (!*lst)
*lst = new;
else
ft_lstlast(*lst)->next = new;
}