.h, main, Makefile and add_to_list edit for Testing

This commit is contained in:
Manzovince
2019-04-27 14:55:50 +02:00
parent fc0530a257
commit 16f98e1a1d
5 changed files with 15 additions and 135 deletions

10
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/04/24 21:42:45 by vmanzoni ### ########.fr */
/* Updated: 2019/04/27 14:47:35 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,7 +15,6 @@
int main(int argc, char **argv)
{
char *input;
static t_fillist *list;
if (argc == 2)
{
@@ -23,12 +22,7 @@ int main(int argc, char **argv)
print_error("Error: Could not read file.\n");
if (check_file_errors(input))
print_error("Error: Invalid file.\n");
parse_input(input, list);
while (list)
{
printf("%i\n", list->tetribit);
list = list->next;
}
parse_input(input);
/*
Backtracking for smallest square
Transform tetriminos with letters & Print result