tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
ft_lstiter_bonus.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstiter_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/28 01:46:44 by tgrekov #+# #+# */
/* Updated: 2023/11/20 19:21:04 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_lstiter_bonus.c.

#include "libft.h"
Include dependency graph for ft_lstiter_bonus.c:

Go to the source code of this file.

Functions

void ft_lstiter (t_list *lst, void(*f)(void *))
 Iterates over a list and applies the function f over each node.
 

Function Documentation

◆ ft_lstiter()

void ft_lstiter ( t_list lst,
void(*)(void *)  f 
)

Iterates over a list and applies the function f over each node.

Parameters
[in]lstPointer to the first node in the list
[in]fFunction which accepts the content of a node

Definition at line 30 of file ft_lstiter_bonus.c.

References s_list::content, and s_list::next.