-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckers2.c
25 lines (22 loc) · 1.12 KB
/
checkers2.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* checkers2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vsimeono <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/21 15:03:09 by vsimeono #+# #+# */
/* Updated: 2022/03/21 15:03:50 by vsimeono ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
/* Checking if the Map has Extension .ber*/
int is_map(char *argv)
{
int len;
len = ft_strlen(argv);
if (argv[len - 4] == '.' && argv[len - 3] == 'b' && \
argv[len - 2] == 'e' && argv[len - 1] == 'r')
return (1);
return (0);
}