-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_error.c
More file actions
22 lines (20 loc) · 1007 Bytes
/
ft_error.c
File metadata and controls
22 lines (20 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jagarcia <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/25 21:27:02 by jagarcia #+# #+# */
/* Updated: 2018/02/26 14:23:45 by jagarcia ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_error(char *err)
{
if (!err)
perror(err);
else
ft_putstr_fd(err, 2);
exit(1);
}