Idiomisms
This commit is contained in:
parent
718c214400
commit
b4b456392e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue