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