-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.c
25 lines (22 loc) · 1.05 KB
/
error.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sadamant <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/21 16:49:04 by sadamant #+# #+# */
/* Updated: 2018/02/21 16:49:34 by sadamant ### ########.fr */
/* */
/* ************************************************************************** */
#include "wolf3d.h"
void exit_id(int i)
{
if (i == 1)
exit_error("Failed to allocate memory.");
}
void exit_error(char *str)
{
ft_putendl_fd(str, 2);
exit(EXIT_FAILURE);
}