Rm comments and idioms
This commit is contained in:
parent
27f69f04eb
commit
c275a18069
18
ex00/main.c
18
ex00/main.c
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/26 06:13:07 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/26 07:54:38 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/26 07:57:08 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -23,7 +23,12 @@ int main(int argc, char **argv)
|
|||
n = 4;
|
||||
borders = malloc(n * 4 * 4);
|
||||
board = allo_mem(board, n);
|
||||
if (handle_input(argc, argv, borders, n) == 0)
|
||||
if (!handle_input(argc, argv, borders, n))
|
||||
{
|
||||
put_error();
|
||||
return (1);
|
||||
}
|
||||
if (!backtrack(borders, board, n))
|
||||
{
|
||||
put_error();
|
||||
return (1);
|
||||
|
@ -32,12 +37,3 @@ int main(int argc, char **argv)
|
|||
return (0);
|
||||
}
|
||||
// TODO: get position
|
||||
/*
|
||||
if (backtrack(borders, board, n) == 0)
|
||||
{
|
||||
put_error();
|
||||
return (1);
|
||||
}
|
||||
|
||||
print_stuff
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue