-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.c
30 lines (26 loc) · 1.07 KB
/
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
/* ************************************************************************** */
/* ifsdfs */
/* ::: :::::::: */
/* errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: iradchen <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/03/25 15:36:52 by iradchen #+# #+# */
/* Updated: 2018/03/25 15:36:53 by iradchen ### ########.fr */
/* */
/* ************************************************************************** */
#include "rtv1.h"
void error(char *message)
{
ft_putendl(message);
exit(0);
}
void error_file(void)
{
error("FILE ERROR!");
}
void check_malloc(void *ptr)
{
if (!ptr)
error("CANT MALLOC!");
}