From ff846486ce845beab8b0fe31c227b5c5ad620bb9 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Tue, 7 May 2024 15:30:14 +0200 Subject: Still restoring --- include/pipex.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/pipex.h') diff --git a/include/pipex.h b/include/pipex.h index 1a79cf1..8f24cc0 100644 --- a/include/pipex.h +++ b/include/pipex.h @@ -6,7 +6,7 @@ /* By: dkaiser +typedef struct s_pxdata +{ + int in_fd; + int out_fd; + char **cmds; +} t_pxdata; + +char **get_split_path(char *envp[]); +char *get_pwd(char *envp[]); +char *find_in_path(char *cmd, char **path); +char *get_cmd_path(char *cmd, char **path, char *pwd); +t_pxdata *get_pxdata(int argc, char *argv[], char *envp[]); #endif // PIPEX_H -- cgit v1.2.3