-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_lstiter.c
34 lines (31 loc) · 1.32 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
24
25
26
27
28
29
30
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstiter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cjackows <@student.42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/12 17:26:25 by cjackows #+# #+# */
/* Updated: 2023/06/01 10:17:37 by cjackows ### ########.fr */
/* */
/* ************************************************************************** */
#include "../inc/libft.h"
/**
* @brief Iterates the list ’lst’ and applies the function ’f’ on the content
* of each node.
*
* @param lst The address of a pointer to a node.
* @param f The address of the function used to iterate on the list.
*/
// void ft_lstiter(t_list *lst, void (*f)(void *))
// {
// t_list *tmp;
// if (!lst)
// return ;
// tmp = lst;
// while (tmp)
// {
// f(tmp->content);
// tmp = tmp->next;
// }
// }