-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
29 lines (26 loc) · 1.1 KB
/
main.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
25
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dvan-der <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/14 13:55:10 by dvan-der #+# #+# */
/* Updated: 2022/02/09 14:26:49 by dvan-der ### ########.fr */
/* */
/* ************************************************************************** */
#include "pipex.h"
int main(int argc, char *argv[], char *envp[])
{
t_pipe p;
int fd;
if (argc < 4)
return (0);
fd = -1;
p.argv = argv;
p.cmd_i = 2;
p.cmd_lim = argc - 2;
p.envp = envp;
pipex(&p, fd);
return (0);
}