/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: vmanzoni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */ /* Updated: 2019/04/27 14:47:35 by vmanzoni ### ########.fr */ /* */ /* ************************************************************************** */ #include "fillit.h" int main(int argc, char **argv) { char *input; if (argc == 2) { if (!(input = read_file(argv[1]))) print_error("Error: Could not read file.\n"); if (check_file_errors(input)) print_error("Error: Invalid file.\n"); parse_input(input); /* Backtracking for smallest square Transform tetriminos with letters & Print result */ } else print_error("Usage: Please submit a file.\n"); return (0); }