diff options
| author | Dominik Kaiser | 2024-05-02 16:47:43 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-05-02 16:47:43 +0200 |
| commit | babfb66a69e285c007699481dcba3661f8ac06f6 (patch) | |
| tree | b1d36ba55fdad878fad476dd26b0077cbfbe3a10 /include/pipex.h | |
| parent | d2a8f6c36047428a0cc5eafdada9ec9d6b1e912b (diff) | |
| download | pipex-babfb66a69e285c007699481dcba3661f8ac06f6.tar.gz pipex-babfb66a69e285c007699481dcba3661f8ac06f6.zip | |
Put env util functions in separate fileinput_handling
Diffstat (limited to 'include/pipex.h')
| -rw-r--r-- | include/pipex.h | 17 |
1 files changed, 15 insertions, 2 deletions
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 <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/29 14:04:28 by dkaiser #+# #+# */ -/* Updated: 2024/04/29 16:38:38 by dkaiser ### ########.fr */ +/* Updated: 2024/05/02 16:22:31 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef PIPEX_H # define PIPEX_H -# include "../libft/libft.h" +# include "libft.h" # include <unistd.h> +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 |
