feat: added lst structure

This commit is contained in:
Zoëy Noort 2025-05-31 19:36:07 +02:00
parent f3377656e4
commit 3287cd402f
6 changed files with 93 additions and 0 deletions

13
srcs/lst/ft_lstshift.c Normal file
View file

@ -0,0 +1,13 @@
#include "libft.h"
t_list *ft_lstshift(t_list **lst)
{
t_list *first;
if (!lst || !*lst)
return NULL;
first = *lst;
*lst = first->next;
first->next = NULL;
return first;
}