42-archive/libft/srcs/lst/ft_lst_pop.c
2017-07-04 17:40:24 +02:00

11 lines
142 B
C

#include "libft.h"
t_list *ft_lst_pop(t_list **lst)
{
t_list *top;
top = *lst;
if (lst && *lst)
*lst = (*lst)->next;
return (top);
}