-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmd.h
34 lines (30 loc) · 1.17 KB
/
cmd.h
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
29
30
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cmd.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: user42 <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/16 09:27:39 by lchapren #+# #+# */
/* Updated: 2021/03/20 11:40:37 by user42 ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CMD_H
# define CMD_H
typedef struct s_cmd
{
char **token;
char **redir_file;
int redir_in;
int redir_out;
struct s_cmd *next;
} t_cmd;
typedef struct s_data
{
struct s_cmd *cmd;
char *line;
char **envp_copy;
int in_fork;
int exit_value;
} t_data;
#endif