Files
42_INT_07_minishell/headers/minishell_structs.h
2021-10-20 09:42:26 +02:00

36 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minishell_structs.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:35:52 by lperrey #+# #+# */
/* Updated: 2021/10/20 09:11:41 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_STRUCTS_H
# define MINISHELL_STRUCTS_H
typedef struct s_all
{
char **envp;
char *prompt_base;
char *prompt;
} t_all;
typedef struct s_cmd
{
char **argv;
pid_t pid;
void *builtin;
int pipe_in;
int pipe_out;
int fd_redirect;
int fd_in;
int fd_out;
} t_cmd;
#endif