42_minishell/data/data.h

28 lines
1.1 KiB
C
Raw Normal View History

2023-03-28 09:55:08 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* data.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 13:43:39 by cchauvet #+# #+# */
/* Updated: 2023/03/27 13:43:40 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef DATA_H
# define DATA_H
# include "../libftx/libft/list.h"
typedef struct s_data
{
t_list **env;
t_list **cmds;
int exit_code;
2023-03-22 09:29:32 -04:00
int child_pid;
} t_data;
2023-03-22 09:59:19 -04:00
t_data *ft_get_data(void);
#endif