diff options
Diffstat (limited to 'queue.h')
-rw-r--r-- | queue.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,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 |