/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstpop.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/04 11:09:56 by jhalford #+# #+# */ /* Updated: 2016/11/04 11:09:56 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstpop(t_list **lst) { t_list *top; top = *lst; if (*lst) *lst = (*lst)->next; return (top); }