-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
27 lines (24 loc) · 1.09 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mohtakra <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/04 13:30:37 by abenheni #+# #+# */
/* Updated: 2023/12/08 16:25:55 by mohtakra ### ########.fr */
/* */
/* ************************************************************************** */
#include "render_map.h"
int main(int argc, char **argv)
{
t_data info;
t_cub *data;
data = parse_data(argc, argv);
if (!data || !render_map(&info, data))
{
clean_struct(data);
exit (EXIT_FAILURE);
}
return (0);
}