Cleaning modif + new file for parsing input

This commit is contained in:
Manzovince
2019-04-15 15:11:50 +02:00
parent 1456316e42
commit 15623fa6bb
6 changed files with 68 additions and 44 deletions

View File

@@ -3,16 +3,19 @@
/* ::: :::::::: */
/* add_to_list.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* By: hulamy <hulamy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/14 15:20:53 by hulamy #+# #+# */
/* Updated: 2019/04/15 00:24:25 by hulamy ### ########.fr */
/* Updated: 2019/04/15 14:38:43 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
#include <stdio.h>
/*
** Function that ...
*/
void find_start_and_end(char **square, int *x1, int *x2, int *y1, int *y2)
{
@@ -36,6 +39,10 @@ void find_start_and_end(char **square, int *x1, int *x2, int *y1, int *y2)
i--;
}
/*
** Function that ...
*/
char **fill_tetraminos(char **square, int x1, int y1, int x2, int y2)
{
char **result;
@@ -63,6 +70,10 @@ char **fill_tetraminos(char **square, int x1, int y1, int x2, int y2)
return (result);
}
/*
** Function that ...
*/
int add_to_list(char **square)
{
t_fillist *list;