-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_prc_del.c
22 lines (20 loc) · 1.08 KB
/
ft_prc_del.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_prc_del.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenamar <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/09 18:06:25 by abenamar #+# #+# */
/* Updated: 2023/09/13 00:50:12 by abenamar ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void ft_prc_del(void *prc)
{
if (((t_proc *) prc)->readfd[0])
close(((t_proc *) prc)->readfd[0]);
if (((t_proc *) prc)->writefd[1])
close(((t_proc *) prc)->writefd[1]);
free(prc);
}