-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclearing.c
28 lines (24 loc) · 1.12 KB
/
clearing.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* clearing.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dcelsa <dcelsa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/02 15:52:52 by dcelsa #+# #+# */
/* Updated: 2022/04/03 16:35:59 by dcelsa ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void clearexp(void *content)
{
free(((t_exp *)content)->val);
}
void clearredirlst(void *content)
{
free(((t_redir *)content)->florlmt);
}
void clearcmdlst(void *content)
{
ft_lstclear(&((t_cmd *)content)->args, &free);
}