blob: 4de2ff3c1df593d13c44b5ba9aa0167da491a97f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_merge.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/19 08:50:01 by cacharle #+# #+# */
/* Updated: 2019/07/19 08:51:36 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
void ft_list_merge(t_list **begin_list1, t_list *begin_list2)
{
t_list *cursor;
cursor = *begin_list1;
while (cursor->next)
cursor = cursor->next;
cursor->next = begin_list2;
}
|