-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_atom_lst_iter.c
25 lines (22 loc) · 1.05 KB
/
ft_atom_lst_iter.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atom_lst_iter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mle-roy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/02/11 16:53:36 by mle-roy #+# #+# */
/* Updated: 2014/02/11 16:55:21 by mle-roy ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_atom_lst_iter(t_lst *list, void (*f)(void *content))
{
t_atom *atom;
atom = list->first;
while (atom)
{
f(atom->content);
atom = atom->next;
}
}