-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_lstiter.c
More file actions
25 lines (22 loc) · 1.03 KB
/
Copy pathft_lstiter.c
File metadata and controls
25 lines (22 loc) · 1.03 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstiter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mnishimo <mnishimo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/27 22:43:04 by mnishimo #+# #+# */
/* Updated: 2019/04/09 23:15:01 by mnishimo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
void ft_lstiter(t_list *lst, void (*f)(t_list *elem))
{
t_list *cur;
cur = lst;
while (cur)
{
f(cur);
cur = cur->next;
}
}