-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror_handler.c
20 lines (18 loc) · 1013 Bytes
/
error_handler.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* error_handler.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lbrandy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/03/17 15:40:37 by lbrandy #+# #+# */
/* Updated: 2021/04/02 19:11:18 by lbrandy ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
void error_handler(char *str)
{
write(2, "Error\n", 6);
write(2, str, ft_strlen(str));
exit(1);
}