From babfb66a69e285c007699481dcba3661f8ac06f6 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Thu, 2 May 2024 16:47:43 +0200 Subject: Put env util functions in separate file --- include/pipex.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'include/pipex.h') diff --git a/include/pipex.h b/include/pipex.h index 1a79cf1..8ec565d 100644 --- a/include/pipex.h +++ b/include/pipex.h @@ -6,14 +6,27 @@ /* 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