summaryrefslogtreecommitdiff
path: root/comp/work/42/rpn/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/42/rpn/stack.h')
-rw-r--r--comp/work/42/rpn/stack.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/work/42/rpn/stack.h b/comp/work/42/rpn/stack.h
new file mode 100644
index 0000000..0c78a10
--- /dev/null
+++ b/comp/work/42/rpn/stack.h
@@ -0,0 +1,10 @@
+typedef struct stack {
+ int *sp;
+ int value;
+ int *stack;
+} stack;
+
+int pop(stack *stack);
+void push(stack *stack, int value);
+void deinitstack(stack *stack);
+stack *initstack(int value, int size);