-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueue.h
More file actions
executable file
·37 lines (31 loc) · 1.36 KB
/
queue.h
File metadata and controls
executable file
·37 lines (31 loc) · 1.36 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* queue.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: passef <passef@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/12 17:10:10 by passef #+# #+# */
/* Updated: 2018/01/12 17:10:10 by passef ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef QUEUE_H
#define QUEUE_H
#include "bistromatic.h"
typedef struct s_queueItem
{
char *c;
struct queueItem *next;
} t_queueItem, *queue;
static t_queueItem *first = NULL;
static t_queueItem *last = NULL;
static int nb_items = 0;
int is_empty_queue(void);
int queue_length(void);
int queue_first(void);
int queue_last(void);
void print_queue(void);
void push_queue(char *c);
void pop_queue(void);
void clear_queue(void);
#endif