-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathft_lstaddend.c
More file actions
24 lines (21 loc) · 1.05 KB
/
ft_lstaddend.c
File metadata and controls
24 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstaddend.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wbeets <wbeets@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/03/20 11:56:46 by wbeets #+# #+# */
/* Updated: 2015/03/20 11:56:46 by wbeets ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_clstaddend(t_clist **alst, t_clist *new)
{
t_clist *lstnext;
t_clist *tmp;
tmp = *alst;
while (tmp->next != NULL)
tmp = tmp->next;
tmp->next = new;
}