Compare commits

...

2 Commits

Author SHA1 Message Date
Timo Schmidt 27f69f04eb rm comment 2023-03-26 07:56:11 +02:00
Timo Schmidt b4b456392e Idiomisms 2023-03-26 07:56:02 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -6,18 +6,19 @@
/* By: smatthes <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/25 18:58:21 by smatthes #+# #+# */
/* Updated: 2023/03/26 07:47:58 by tischmid ### ########.fr */
/* Updated: 2023/03/26 07:55:41 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include "include/handle_input.h"
// handle sum of opposite inputs
int handle_input(int argc, char **argv, int *borders, int n)
{
if (check_inp_valid(argc, argv, n) == 0)
if (!check_inp_valid(argc, argv, n))
return (0);
atoi_arr(argv, borders, n);
if (check_opposite_sum(borders, n) == 0)
if (!check_opposite_sum(borders, n))
return (0);
return (1);
}

View File

@ -6,7 +6,7 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/26 06:13:07 by tischmid #+# #+# */
/* Updated: 2023/03/26 07:49:42 by tischmid ### ########.fr */
/* Updated: 2023/03/26 07:54:38 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
@ -32,7 +32,6 @@ int main(int argc, char **argv)
return (0);
}
// TODO: get position
// handle sum of opposite inputs
/*
if (backtrack(borders, board, n) == 0)
{