Move comments

This commit is contained in:
Timo Schmidt 2023-03-26 07:45:58 +02:00
parent 2a13420ea1
commit 534cd2e35c
1 changed files with 7 additions and 11 deletions

View File

@ -6,18 +6,14 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/26 06:13:07 by tischmid #+# #+# */
/* Updated: 2023/03/26 06:58:29 by tischmid ### ########.fr */
/* Updated: 2023/03/26 07:44:16 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int **allo_mem(int **board, int n);
void free_mem(int *borders, int **board, int n);
int handle_input(int argc, char **argv, int *borders, int n);
void put_error(void);
#include "include/main.h"
int main(int argc, char **argv)
{
@ -28,12 +24,16 @@ int main(int argc, char **argv)
n = 4;
borders = malloc(n * 4 * 4);
board = allo_mem(board, n);
// handle sum of opposite inputs
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)
{
@ -43,7 +43,3 @@ int main(int argc, char **argv)
print_stuff
*/
free_mem(borders, board, n);
return (0);
}
// TODO: get position