-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_end.c
executable file
·22 lines (20 loc) · 1.02 KB
/
is_end.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* is_end.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ioleksiu <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/08/15 20:48:06 by ioleksiu #+# #+# */
/* Updated: 2017/08/15 20:48:09 by ioleksiu ### ########.fr */
/* */
/* ************************************************************************** */
#include "lem_in.h"
int is_end(t_lemin *lem, char *str)
{
if (!ft_strequ(str, "##end"))
return (0);
lem->is_end = 1;
free(str);
return (1);
}