First version with working test (read and print file)

This commit is contained in:
Manzovince
2019-04-14 12:15:25 +02:00
parent 1ce59774b8
commit 481d683467
28 changed files with 637 additions and 13 deletions

View File

@@ -6,10 +6,12 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */
/* Updated: 2019/04/12 22:27:42 by vmanzoni ### ########.fr */
/* Updated: 2019/04/14 12:13:42 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
#include "../includes/fillit.h"
int main(int argc, char **argv)
{
char *input;
@@ -19,8 +21,8 @@ int main(int argc, char **argv)
{
if (!(input = read_file(argv[1])))
ft_display_error("Error: Could not read file.\n", 2);
else if (/*Elements in file not valid*/)
ft_display_error("Error: Invalid file.\n", 2);
// else if (/*Elements in file not valid*/)
// ft_display_error("Error: Invalid file.\n", 2);
/*
Transform input to tetriminos
Check if every tetrimino is valid
@@ -28,6 +30,7 @@ int main(int argc, char **argv)
Transform tetriminos with letters
Print result
*/
print_test(input);
}
else
ft_display_error("Error: Please submit a file.\n", 2);