WORKING VERSION FOR 42FileChecker test. All test passed !

This commit is contained in:
Manzovince
2019-05-09 12:46:59 +02:00
parent 1c6e41e8bf
commit 8a62783a6b
5 changed files with 40 additions and 31 deletions

14
main.c
View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */
/* Updated: 2019/05/03 19:12:47 by vmanzoni ### ########.fr */
/* Updated: 2019/05/09 11:45:36 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,15 +19,13 @@ int main(int argc, char **argv)
if (argc == 2)
{
if (!(input = read_file(argv[1])))
print_error("error: Could not read file.\n");
print_error("error\n");
// print_error("error: Could not read file.\n");
if (check_file_errors(input))
print_error_extended(check_file_errors(input));
// print_error("error: Invalid file.\n");
print_error("error\n");
// print_error("error: Invalid file.\n");
// print_error_extended(check_file_errors(input));
parse_input(input);
/*
Backtracking for smallest square
Transform tetriminos with letters & Print result
*/
}
else
print_error("usage: Please submit a file.\n> ./fillit file.fillit\n");