-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_view_list.c
More file actions
26 lines (23 loc) · 1.05 KB
/
ft_view_list.c
File metadata and controls
26 lines (23 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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* view_list.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mtacnet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/09/01 14:14:44 by mtacnet #+# #+# */
/* Updated: 2017/09/01 14:15:20 by mtacnet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void view_list(t_elem **lst)
{
t_elem *head;
head = (*lst);
while ((*lst) != NULL)
{
ft_putendl((*lst)->content);
(*lst) = (*lst)->next;
}
(*lst) = head;
}