-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfillit.h
More file actions
40 lines (35 loc) · 1.66 KB
/
fillit.h
File metadata and controls
40 lines (35 loc) · 1.66 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
/* ************************************************************************** */
/* */
/* :::::::: */
/* fillit.h :+: :+: */
/* +:+ */
/* By: aholster <aholster@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2019/03/11 16:20:57 by aholster #+# #+# */
/* Updated: 2019/03/25 15:37:55 by aholster ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef FILLIT_H
# define FILLIT_H
# define MASK2B 3
# define MASK4B 15
# define MASKBY 255
# include "libft.h"
# include <fcntl.h>
# include <sys/types.h>
# include <sys/uio.h>
int read_tet(unsigned int *tet, char *buff);
void fillit(int fd);
void map_control(unsigned int *tet, short tetcount);
int place_tet(unsigned int *tet, unsigned short *map,\
unsigned short di);
unsigned short smallest_map(short tetcount);
int check_tet(unsigned int *tet);
void shift_corner(unsigned int *tet);
void ft_error(void);
unsigned short calc_empty(unsigned short *map, unsigned short di);
int remove_tet(unsigned int *tet, unsigned short *map,\
unsigned short di);
int increment_offset(unsigned int *tet, unsigned short di);
void print_result(unsigned int *tet, unsigned short di);
#endif