-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_display_list.c
33 lines (30 loc) · 1.17 KB
/
ft_display_list.c
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
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_display_list.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pbourdon <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/07/08 15:13:06 by pbourdon #+# #+# */
/* Updated: 2016/08/17 13:18:09 by pbourdon ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int ft_display_list(t_dlist *p_list)
{
t_node *p_temp;
p_temp = p_list->p_head;
if (p_list != NULL)
{
while (p_temp != NULL)
{
if (p_temp->data != NULL)
{
ft_putstr(p_temp->data);
ft_putchar('\n');
}
p_temp = p_temp->p_next;
}
}
return (0);
}