summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-10-22 02:45:34 +0300
committerRasmus Luha <rasmus.luha@gmail.com>2022-10-22 02:45:34 +0300
commitfcb9ff2b96de6989e9a676e96753b1b1279acf67 (patch)
treee9a8839939aac6eeba3dea89ca0c20ad8268150e /inc
parenta97b362e6a35be4575f7ded3c31cdeede89ab2a8 (diff)
hw3 status
Diffstat (limited to 'inc')
-rw-r--r--inc/mem.h1
-rw-r--r--inc/stack.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/inc/mem.h b/inc/mem.h
index 50a0a17..86bed3f 100644
--- a/inc/mem.h
+++ b/inc/mem.h
@@ -8,6 +8,7 @@ struct mem_st {
int pos;
};
+int mem_pos();
int mem_inc();
int mem_dec();
int mem_left();
diff --git a/inc/stack.h b/inc/stack.h
index 60d41b8..fcc976a 100644
--- a/inc/stack.h
+++ b/inc/stack.h
@@ -1,6 +1,13 @@
#ifndef __STACK_H__
#define __STACK_H__
+#define STACK_SIZE 100
+
+struct stack_st {
+ int len;
+ int arr[STACK_SIZE];
+};
+
void stackPush(int val);
int stackPop(void);
int stackIsEmpty(void);