diff --git a/source/handyqueue.h b/source/handyqueue.h new file mode 100644 index 0000000..dc7f31b --- /dev/null +++ b/source/handyqueue.h @@ -0,0 +1,35 @@ +/* +handyqueue.h +Created By: + Andrew Lalis (andrewlalisofficial@gmail.com) + 23 May 2017 +This file is free to use, as long as the above comment remains in the file. +Please contact the author regarding bugs and/or feature requests. +*/ + +#ifdef QUEUE_TYPE + +#include "templates.h" + +#include +#include +#include + +/* +Queue: + A storage data structure which follows the rule 'first-in, first-out', and has special functions 'enqueue' and 'dequeue' to manipulate the queue. +*/ + +#define QUEUE TEMPLATE(QUEUE_TYPE,queue) + +/* +Queue Structure: +*/ +typedef struct { + QUEUE_TYPE* data; + int back; + int front; + int size; +} QUEUE; + +#endif \ No newline at end of file