-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
31 lines (28 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
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbutt <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/18 13:42:03 by mbutt #+# #+# */
/* Updated: 2019/05/22 14:22:22 by mbutt ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
int main(int argc, char **argv)
{
int fd;
fd = 0;
if (argc != 2)
{
ft_putstr(USAGE);
exit(1);
}
fd = open(argv[1], O_RDONLY);
if (fd == -1)
ft_exit();
solve_driver1(fd);
close(fd);
return (0);
}