fix: lst -> slist

This commit is contained in:
Zoëy Noort 2025-05-31 20:17:01 +02:00
parent 93da2c9ca6
commit 14adc54215
16 changed files with 48 additions and 46 deletions

View file

@ -0,0 +1,12 @@
#include "libft.h"
t_slist *ft_slist_find(t_slist *lst, void *data, int (*cmp)(void *, void *))
{
while (lst)
{
if (cmp(lst->data, data) == 0)
return (lst);
lst = lst->next;
}
return (NULL);
}