diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2025-01-30 12:49:01 +0000 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2025-01-30 12:49:01 +0000 |
commit | 02653ab40d93fb7e6d07edb747fe0e07c5d60c74 (patch) | |
tree | 12e62d9e66737597e2d7ddc71eefa8a08264cffa /comp/work/42/rpn/stack.h | |
parent | 87c1e35223b0fd9002a6efca2a208fb8ae1993e2 (diff) |
did many new things
Diffstat (limited to 'comp/work/42/rpn/stack.h')
-rw-r--r-- | comp/work/42/rpn/stack.h | 10 |
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); |