-
Notifications
You must be signed in to change notification settings - Fork 0
/
so_long.c
29 lines (26 loc) · 1.18 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* so_long.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcogne-- <mcogne--@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/27 01:51:25 by mcogne-- #+# #+# */
/* Updated: 2024/11/01 06:50:12 by mcogne-- ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
short so_long(char *path)
{
t_map *map;
t_mlx *mlx;
short error_code;
mlx = NULL;
error_code = map_init(path, &map);
if (error_code != 0)
put_error(error_code, mlx, map);
error_code = ft_mlx_start(&map, &mlx);
if (error_code != 0)
put_error(error_code, mlx, map);
return (0);
}