moved env functions to libft
This commit is contained in:
25
libft/srcs/ft_envdel.c
Normal file
25
libft/srcs/ft_envdel.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user