/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* execution.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */ /* Updated: 2024/06/13 14:12:31 by mmoussou ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef EXECUTION_H # define EXECUTION_H # include "env.h" char *get_path(char *path, char *cmd); int exec_split_cmd(t_list *list_cmd, t_env *env); /** * @brief spawn a heredoc * * @param delimiter a string representing the delimiter of the heredoc * * @return (int) fd of a file containing the user's input, or -1 on error */ int ft_heredoc(char *delimiter); #endif