-
Notifications
You must be signed in to change notification settings - Fork 0
/
fillit.h
45 lines (40 loc) · 1.72 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fillit.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mpaziuk <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/07 20:15:50 by mpaziuk #+# #+# */
/* Updated: 2016/12/07 20:15:52 by mpaziuk ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLIT_H
# define FILLIT_H
# include "libft.h"
# include <sys/stat.h>
# include <sys/types.h>
# include <fcntl.h>
typedef struct s_fig
{
char **figure;
struct s_fig *next;
} t_fig;
char **ft_fillit_ctrl(t_fig *figure);
void ft_sfparam(t_fig *figure, int *width, int *height);
char **ft_mapclone(char **map);
int ft_delmap(char ***map_tmp);
void ft_printmap(char **map);
size_t ft_csize(t_fig *figure);
int fn_start(char **split);
int fn_last(char **split);
char *mk_tmp(char *copy, int start, int end);
t_fig *read_map(int fd, int i, char ch, t_fig *out);
void set_chars(char **figure, char ch);
void ft_error(void);
void ft_lstcadd(t_fig **lst, char ***figure);
int is_empty(char *str);
int valid_map(char *buff, int size);
int ft_pattern_check(char *figure);
void ft_trim(char *buff);
#endif