blob: db8ac5451a776f3bcb0ef6d8f4bc43088fdf32c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef QUEUE_H_SENTRY
#define QUEUE_H_SENTRY
struct word_item {
char *word;
struct word_item *next;
};
struct queue {
struct word_item *first;
struct word_item *last;
};
void queue_init(struct queue *q);
void queue_push(struct queue *q, char *word);
void queue_clear(struct queue *q);
void queue_processing(const struct queue *q, void (*callback)(char*));
#endif
|