-
Notifications
You must be signed in to change notification settings - Fork 0
/
fillit.h
58 lines (50 loc) · 1.69 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fillit.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rtiutiun <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/05 19:51:23 by mhouser #+# #+# */
/* Updated: 2017/12/06 12:53:58 by rtiutiun ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLIT_H
# define FILLIT_H
# include <unistd.h>
# include <stdlib.h>
# include <fcntl.h>
# define UP 1
# define DN 2
# define LT 3
# define RT 4
typedef struct s_mnm
{
char xmax;
char ymax;
char xmin;
char ymin;
} t_mm;
typedef struct s_tet
{
struct s_tet *nxt;
t_mm *mnm;
unsigned char len;
unsigned char wid;
char xy[4][2];
char val;
} t_tet;
typedef struct s_map
{
unsigned char size;
char **buf;
} t_map;
void freebufs(t_map *map);
void ft_memdel(void **ap);
void *ft_malloc(size_t size);
void *ft_memset(void *b, int c, size_t len);
void ft_putchar(char *c, unsigned char len);
t_map *tetsolve(t_tet *tets, unsigned char *ntets);
char havehash(char tet[4][2], char y, char x, char flag);
char validate(int fd, t_tet *tets, unsigned char *ntets);
#endif