-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinked_list.h
48 lines (40 loc) · 1.77 KB
/
linked_list.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* linked_list.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbutt <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/19 18:35:21 by mbutt #+# #+# */
/* Updated: 2019/05/22 19:16:46 by mbutt ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LINKED_LIST_H
# define LINKED_LIST_H
# include "fillit.h"
/*
** Put linked list structures here
*/
typedef struct s_tetro
{
void *struct_tetro;
char struct_c;
struct s_tetro *next;
} t_tetro;
/*
** linkedlist.c functions
*/
t_tetro *create(void *struct_tetro);
t_tetro *append(t_tetro *head, void *struct_tetro);
t_tetro *coord_to_struct(int **shifted_coord, int tetro_count);
/*
** ----------------------------------------------------------------------------
** ------------Extra linked list functions not used in the project-------------
** ------------------------------For Reference---------------------------------
*/
void print_data(t_tetro *struct_pointer);
int print_data_coord(t_tetro *struct_pointer);
int struct_element_count(t_tetro *head);
int print_data_coord(t_tetro *struct_pointer);
t_tetro *tetro_to_struct(char **characters, int tetro_count);
#endif