-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfillit.h
67 lines (53 loc) · 2.28 KB
/
fillit.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fillit.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qdegraev <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/07 09:43:52 by qdegraev #+# #+# */
/* Updated: 2015/12/17 17:37:02 by qdegraev ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLIT_H
# define FILLIT_H
#include "libft/libft.h"
// size_t
#include <string.h>
// open
#include <fcntl.h>
//malloc
#include <stdlib.h>
//write
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
t_list *ft_recordfile(int fd);
void add_pieces_in_list(t_list *lst);
int check_box(char *s);
int check_piece(char *piece);
int check_file(t_list *lst);
char **cut_pieces(char *s);
char *cut_empty_lin(char *s);
void str_replace(char *dest, const char *src);
void str_replace_col(char *dest, const char *src);
char *cut_empty_col(char *s);
char *src_emptycol(char *s);
void set_tab(t_list **lst);
t_list *list_new(void const *content, size_t content_size, char letter);
void list_addback(t_list **begin_list, void const *content, size_t content_size, char letter);
void insert_pieces(t_list *lst);
void del_lstcontent(char **tab, char *s, int size, char letter);
void list_erase(t_list **lst);
int ft_lstlen(t_list *lst);
char *hash_vs_letter(char *s, char hash, char letter);
void ft_fill_board(char **map, char **tab, int x, int y);
int check_board(char **map, char **tab, int x, int y);
int backtrack_map2(t_list *lst, char **map);
char **map_expand(t_list *lst, int *n);
int ft_niketamerelapute(char **map, char **tabi, int *i, int *j);
int ft_small_square(int i);
char **ft_taballoc(int n);
void erase_piece(char **map, char **tab, int x, int y);
int ft_errorbox();
#endif