-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexit_error.c
executable file
·23 lines (21 loc) · 1.09 KB
/
exit_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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exit_error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbenjami <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/05/01 15:04:23 by rbenjami #+# #+# */
/* Updated: 2014/05/14 17:25:16 by rbenjami ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void exit_error(char *error)
{
ft_putstr_fd(ANSI_COLOR_RED, 2);
ft_putstr_fd("error: ", 2);
ft_putstr_fd(ANSI_COLOR_RESET, 2);
write(2, error, ft_strlen(error));
write(2, "\n", 1);
exit(-42);
}