-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipex.c
24 lines (21 loc) · 1.1 KB
/
pipex.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pipex.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aniouar <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/24 07:44:50 by aniouar #+# #+# */
/* Updated: 2022/07/07 08:52:09 by aniouar ### ########.fr */
/* */
/* ************************************************************************** */
#include "pipex.h"
int main(int ac, char **av, char **env)
{
char ***array_env;
if (ac < 5 || ac > 5)
custom_error("Program needs more arguments", 1);
array_env = fill_array_env(env);
regular_pipe(av, array_env);
return (0);
}