42/d09/ex12/main.c
2016-11-20 02:20:23 +02:00

27 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/04 06:08:21 by gtertysh #+# #+# */
/* Updated: 2016/11/04 06:08:34 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "ft_door.h"
int main()
{
t_door door;
open_door(&door);
if (is_door_close(&door))
open_door(&door);
if (is_door_open(&door))
close_door(&door);
if (door.state == OPEN)
close_door(&door);
return (EXIT_SUCCESS);
}