-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
23 lines (21 loc) · 1.11 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lefendie <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/29 13:10:05 by manjaro #+# #+# */
/* Updated: 2021/09/27 15:53:57 by lefendie ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
int main(int argc, char **argv)
{
if (argc == 2)
ft_process_main(argv[1]);
else if (argc < 2)
ft_exit_with_error("Need a valid map as argument", 'r');
else if (argc > 2)
ft_exit_with_error("Too much arguments", 'r');
}