-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.c
39 lines (34 loc) · 1.28 KB
/
errors.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
34
35
36
37
38
39
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ltombell <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/08 16:01:44 by ltombell #+# #+# */
/* Updated: 2022/11/08 18:55:03 by ltombell ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void args_error(void)
{
ft_printf("Error\nCi deve essere solo un argomento, la mappa \n");
exit (0);
}
void wrong_ext(void)
{
ft_printf("Error\nEstensione file non valida \n");
exit(0);
}
void invalid_map(t_program *dt)
{
ft_printf("Error\nMappa non valida");
freemap(dt);
exit (0);
}
void map_too_big(t_program *dt)
{
freemap(dt);
ft_printf("Error\nMappa troppo grande\n");
exit(0);
}