-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.c
31 lines (28 loc) · 1.16 KB
/
core.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* core.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nahmed-m <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/28 17:08:03 by nahmed-m #+# #+# */
/* Updated: 2016/01/14 13:05:08 by nahmed-m ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
int main(int ac, char **av)
{
t_env map;
if (ac == 2)
{
file(av[1], &map);
ft_print_2d_tab(map.cor, map.line, map.collum);
map.basex = 450;
map.basey = 450;
map.size = 10;
map.filename = av[1];
window(&map);
}
else
ft_exit("Usage : ./fdf <path_of_map>");
}