-
Notifications
You must be signed in to change notification settings - Fork 0
/
exit_errors.c
33 lines (30 loc) · 1.17 KB
/
exit_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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exit_errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hgrissen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/04 13:40:46 by hgrissen #+# #+# */
/* Updated: 2021/11/05 16:02:40 by hgrissen ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
int exit_error(int error)
{
if (error == 0)
printf("Argument Error\n");
if (error == 1)
printf("File Error\n");
if (error == 2)
printf("Map Error\n");
if (error == 3)
printf("Textures Error\n");
ft_quit();
return (0);
}
int ft_quit(void)
{
exit(0);
return (0);
}