27 lines
1 KiB
C
27 lines
1 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_lstpop.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2016/12/04 18:30:18 by gtertysh #+# #+# */
|
||
|
/* Updated: 2016/12/06 19:46:45 by gtertysh ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
t_list *ft_lstpop(t_list **alst)
|
||
|
{
|
||
|
t_list *first;
|
||
|
|
||
|
first = NULL;
|
||
|
if (alst)
|
||
|
{
|
||
|
first = *alst;
|
||
|
*alst = (*alst)->next;
|
||
|
}
|
||
|
return (first);
|
||
|
}
|