-
Notifications
You must be signed in to change notification settings - Fork 0
/
so_long.c
33 lines (29 loc) · 1.24 KB
/
so_long.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
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* so_long.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akaratas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 22:08:42 by akaratas #+# #+# */
/* Updated: 2024/05/05 23:40:59 by akaratas ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
int main(int ac, char **av)
{
static t_game game;
if (ac != 2)
error("Check to parameters!", &game);
create_map(&game, av[1]);
map_format_check(&game);
create_mlx_window(&game);
free_map(game.map);
return (0);
}
/*memory leak check function*/
__attribute__((destructor)) static void test(void)
{
ft_printf("\n");
system("leaks so_long");
}