feat: added lst structure
This commit is contained in:
parent
f3377656e4
commit
3287cd402f
6 changed files with 93 additions and 0 deletions
9
srcs/lst/ft_lstunshift.c
Normal file
9
srcs/lst/ft_lstunshift.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "libft.h"
|
||||
|
||||
void ft_lstunshift(t_list **lst, t_list *node)
|
||||
{
|
||||
if (!lst || !node)
|
||||
return;
|
||||
node->next = *lst;
|
||||
*lst = node;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue