Archived
1
0

[✏️] norm: normed project.

This commit is contained in:
2024-04-07 11:03:38 +02:00
parent 4e0a049e1d
commit 81f16dc864
21 changed files with 236 additions and 20 deletions

22
include/exec.h Normal file
View File

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exec.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/06 14:15:47 by adjoly #+# #+# */
/* Updated: 2024/04/06 14:18:27 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef EXEC_H
# define EXEC_H
# include <sys/wait.h>
#include "pipex.h"
void exec_pipe(t_pipex *pipex);
#endif

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/22 21:14:06 by adjoly #+# #+# */
/* Updated: 2024/04/03 14:24:09 by adjoly ### ########.fr */
/* Updated: 2024/04/06 17:26:47 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,10 +23,15 @@
typedef struct s_pipex
{
t_pcmd *cmd;
char **path;
char **env;
int infile;
int outfile;
char *outfile;
} t_pipex;
void ft_senderror(t_pipex *pipex, char *msg);
void getpath(t_pipex *pipex);
void get_arrcmd_path(t_pipex *pipex);
void exec_pipe(t_pipex *pipex);
#endif