-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_lstiter.c
23 lines (21 loc) · 1.02 KB
/
ft_lstiter.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstiter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mgavillo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/14 23:23:31 by mgavillo #+# #+# */
/* Updated: 2018/11/24 21:37:52 by mgavillo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstiter(t_list *lst, void (*f)(t_list *elem))
{
if (lst)
{
if (lst->next)
ft_lstiter(lst->next, f);
f(lst);
}
}