-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueue.h
More file actions
35 lines (29 loc) · 1.24 KB
/
queue.h
File metadata and controls
35 lines (29 loc) · 1.24 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* queue.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: passef <passef@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/19 21:59:39 by passef #+# #+# */
/* Updated: 2018/01/20 00:31:36 by passef ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef QUEUE_H
# define QUEUE_H
#include "grimly.h"
typedef struct s_queueItem
{
int x;
int y;
struct s_queueItem *next;
} t_queue;
static t_queue *first = NULL;
static t_queue *last = NULL;
static int nbItem = 0;
int is_empty(void);
int queue_lenght(void);
void print_queue(void);
void push_queue(int x, int y);
void pop_queue(void);
#endif