#include "ft_list.h"

void	ft_list_foreach(t_list *begin_list, void (*f)(void *))
{
    t_list *current;

    current = begin_list;
    while (current)
    {
        (*f)(current->data);
        current = current->next;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: