From 5a2665c21b511ef90967af053f6a1d504b78afff Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Sun, 26 Mar 2023 15:53:00 +0200 Subject: Stack, queue and graph data structures implemented in C using linked lists. --- src/stack.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/stack.h (limited to 'src/stack.h') diff --git a/src/stack.h b/src/stack.h new file mode 100644 index 0000000..784180a --- /dev/null +++ b/src/stack.h @@ -0,0 +1,13 @@ +#ifndef STACK_H_ +#define STACK_H_ + +#include "queue.h" + +typedef struct queue Stack; + +Stack *stackAlloc(); +void stackAdd(Stack *stack, int item); +int stackPop(Stack *stack); +void stackFree(Stack *stack); + +#endif -- cgit v1.3.1