-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepare_nodes_2.c
More file actions
25 lines (23 loc) · 1.11 KB
/
prepare_nodes_2.c
File metadata and controls
25 lines (23 loc) · 1.11 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* prepare_nodes_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jklocker <jklocker@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/30 14:12:18 by jklocker #+# #+# */
/* Updated: 2023/01/30 14:12:19 by jklocker ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int prepare_nodes(t_info *info)
{
if (check_valid_redirects(info) == 0)
return (-1);
malloc_nodes(info);
init_nodes(info);
malloc_2d_nodes(info);
create_redircets(info);
create_full_cmd(info);
return (0);
}