fix: lst -> slist
This commit is contained in:
parent
93da2c9ca6
commit
14adc54215
16 changed files with 48 additions and 46 deletions
9
srcs/slist/ft_slist_unshift.c
Normal file
9
srcs/slist/ft_slist_unshift.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "libft.h"
|
||||
|
||||
void ft_slist_unshift(t_slist **lst, t_slist *node)
|
||||
{
|
||||
if (!lst || !node)
|
||||
return;
|
||||
node->next = *lst;
|
||||
*lst = node;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue