-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcub3d_print_error.c
executable file
·30 lines (26 loc) · 1.14 KB
/
cub3d_print_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
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cub3d_print_error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mg <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/04 13:39:33 by mg #+# #+# */
/* Updated: 2020/10/07 23:03:43 by mg ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
/*
** stderr = standard error = 2
*/
void c3d_print_error_sys(t_param *cub3d, char *msg)
{
perror(msg);
c3d_free_memory(cub3d);
}
void c3d_print_error(t_param *cub3d, char *msg)
{
ft_putstr_fd(msg, 2);
ft_putstr_fd("\n", 2);
c3d_free_memory(cub3d);
}