-
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: jony <jony@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/21 22:00:35 by jony #+# #+# */
/* Updated: 2020/01/02 22:30:55 by jony ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
int main(int argc, char **argv)
{
char ***matrix;
if (argc != 2)
ft_putendl("usage: ./fillit source_file");
else
{
matrix = set_up(argv[1]);
if (!matrix)
return (1);
solve(matrix);
}
return (1);
}