-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwin.c
More file actions
21 lines (19 loc) · 1.1 KB
/
win.c
File metadata and controls
21 lines (19 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* win.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bschwitz <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/08 12:26:59 by bschwitz #+# #+# */
/* Updated: 2022/02/08 12:29:00 by bschwitz ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void ft_win(t_data *data)
{
printf("Congratulations, you found all beers and the exit.\n");
printf("You won!\n");
printf("Is %d moves really the best you can do?\n", data->counter);
exit(EXIT_SUCCESS);
}