-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfillit.h
More file actions
executable file
·44 lines (41 loc) · 1.95 KB
/
Copy pathfillit.h
File metadata and controls
executable file
·44 lines (41 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fillit.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ismelich <ismelich@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/19 12:01:16 by ismelich #+# #+# */
/* Updated: 2019/12/09 11:23:27 by ismelich ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLIT_H
# define FILLIT_H
# include "libft.h"
# include <fcntl.h>
# include <unistd.h>
# include <stdlib.h>
int ft_floor_sqrt(int value);
int num_tetra(char ***tetra);
char **gen_row(int m, int n, char c);
int **free_row(char **row);
int print_row(char **row);
char ***gen_matrix(int size, int m, int n, char c);
int fill_matrix(char ***matrix, char **str);
int clean_row_matrix(char ***matrix);
int clean_single_column(char ***matrix, int b, int i, int j);
int clean_column_matrix(char ***matrix);
int input_length(char *path);
char **input_strings(char *path, int size);
char ***error(void);
char ***set_up(char *path);
int insert_tetra_row(char **row, char **tetra, int x, int y);
int clean_tetra_row(char **row, char **tetra, int x, int y);
int insert_checker(char **row, char **tetra, int x, int y);
int backtracking(char **row, char ***tetra, int b);
int solve(char ***matrix);
int check_i(char *str, int *hash, int *l_and_r, int *empty);
int verify_tetri(char *str);
int validate_tetro(char **str, int i, int j);
int tetro_checker(char ***str, int i, int j);
#endif