-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexit.c
More file actions
27 lines (24 loc) · 1.1 KB
/
exit.c
File metadata and controls
27 lines (24 loc) · 1.1 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ldiaz-ra <ldiaz-ra@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/27 11:58:27 by ldiaz-ra #+# #+# */
/* Updated: 2023/11/27 11:58:57 by ldiaz-ra ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void ft_error(char *error)
{
ft_putstr_fd(ROJO_T "Error\n\t" RESET_COLOR, 1);
ft_putstr_fd(error, 1);
exit(1);
}
int ft_close(t_vars *vars)
{
mlx_destroy_window(vars->mlx, vars->win);
exit(0);
return (0);
}