/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/04 06:08:21 by gtertysh #+# #+# */ /* Updated: 2016/11/04 06:08:34 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ #include #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); }