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