26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_envdel.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2019/12/05 14:51:20 by tmaze #+# #+# */
|
|
/* Updated: 2019/12/09 13:00:46 by tmaze ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_envdel(t_env **env)
|
|
{
|
|
t_env *tmp;
|
|
|
|
while (*env)
|
|
{
|
|
tmp = *env;
|
|
*env = (*env)->next;
|
|
ft_envdelelem(&tmp);
|
|
}
|
|
}
|