diff options
author | scratko <m@scratko.xyz> | 2024-08-02 15:55:08 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-08-02 15:55:08 +0300 |
commit | 0733ff24c89c8208b7e5d2789d0913d435b9e0fa (patch) | |
tree | 0ae94c1f3ce9d9c76d8bd07d89b9a1ee78a75834 /card_queue.h | |
download | durak-0733ff24c89c8208b7e5d2789d0913d435b9e0fa.tar.gz durak-0733ff24c89c8208b7e5d2789d0913d435b9e0fa.tar.bz2 durak-0733ff24c89c8208b7e5d2789d0913d435b9e0fa.zip |
Initial commit
Diffstat (limited to 'card_queue.h')
-rw-r--r-- | card_queue.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/card_queue.h b/card_queue.h new file mode 100644 index 0000000..475a93e --- /dev/null +++ b/card_queue.h @@ -0,0 +1,20 @@ +#ifndef H_SENTRY_CARD_QUEUE +#define H_SENTRY_CARD_QUEUE + +struct card_queue_item { + const char *str; + struct card_queue_item *next; +}; + +struct card_queue { + struct card_queue_item *first; + struct card_queue_item *last; +}; + +void init_queue(struct card_queue *cq); +void push_queue(struct card_queue *cq, const char *str); +struct card_queue_item* get_next_card_from_queue(struct card_queue *cq, + struct card_queue_item *prev); +int find_out_card_quantity_in_cq(const struct card_queue *cq); + +#endif |