piscine-rush01/ex00/main.c

45 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/26 06:13:07 by tischmid #+# #+# */
/* Updated: 2023/03/26 07:49:42 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include <stdlib.h>
#include "include/main.h"
int main(int argc, char **argv)
{
int n;
int *borders;
int **board;
n = 4;
borders = malloc(n * 4 * 4);
board = allo_mem(board, n);
if (handle_input(argc, argv, borders, n) == 0)
{
put_error();
return (1);
}
free_mem(borders, board, n);
return (0);
}
// TODO: get position
// handle sum of opposite inputs
/*
if (backtrack(borders, board, n) == 0)
{
put_error();
return (1);
}
print_stuff
*/