-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_isvalid.c
24 lines (22 loc) · 1.03 KB
/
test_isvalid.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_isvalid.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akerkeb <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/01/21 23:16:08 by akerkeb #+# #+# */
/* Updated: 2016/01/21 23:41:43 by akerkeb ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
int ft_test_isvalid(t_tetri *temp)
{
while (temp != NULL)
{
if (temp->is_valid == 0)
return (0);
temp = temp->next;
}
return (1);
}