-
Notifications
You must be signed in to change notification settings - Fork 0
/
intQueue.h
32 lines (24 loc) · 906 Bytes
/
intQueue.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
#ifndef SEMESTRALKA_INTQUEUE_H
#define SEMESTRALKA_INTQUEUE_H
/* ____________________________________________________________________________
Structures and Datatypes
____________________________________________________________________________
*/
typedef struct {
unsigned int capacity;
unsigned int first;
int count;
int *array;
}intQueue;
/* ____________________________________________________________________________
Function Prototypes
____________________________________________________________________________
*/
intQueue *createIntQueue(unsigned int capacity);
void intQueueEnque(intQueue *queue, int element);
int intQueueDeque(int *intPointer, intQueue *queue);
void intQueueExpand(intQueue * queue);
int intQueueIsFull(intQueue *queue);
int intQueueIsEmpty(intQueue *queue);
void intQueueFreeQueue(intQueue **queue);
#endif