From fcb9ff2b96de6989e9a676e96753b1b1279acf67 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Sat, 22 Oct 2022 02:45:34 +0300 Subject: hw3 status --- test/stack.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/stack.h (limited to 'test/stack.h') diff --git a/test/stack.h b/test/stack.h new file mode 100644 index 0000000..8bb1539 --- /dev/null +++ b/test/stack.h @@ -0,0 +1,18 @@ +#ifndef __STACK_H__ +#define __STACK_H__ + +#define STACK_SIZE 100 + +struct stack_st { + int len; + int size; + int* arr; +}; + +void stackPush(int val); +int stackPop(void); +int stackIsEmpty(void); +int stackPeek(void); +void stackPrint(void); + +#endif -- cgit v1.2.3