aboutsummaryrefslogtreecommitdiff
path: root/src/common/stack.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-18 12:11:36 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-18 12:11:36 +0100
commit5e0e41652315114a8b0d883c473dbbbfc1c28342 (patch)
tree8e1440ccf9d686294c05c6f8b5907fe90ba4fda8 /src/common/stack.c
parent2d34349b54a9fed4d34c96bdbec5172f7695cf60 (diff)
downloadpush_swap-5e0e41652315114a8b0d883c473dbbbfc1c28342.tar.gz
push_swap-5e0e41652315114a8b0d883c473dbbbfc1c28342.tar.bz2
push_swap-5e0e41652315114a8b0d883c473dbbbfc1c28342.zip
filled action functions (propably bloat), checker working, stack functions not so much
Diffstat (limited to 'src/common/stack.c')
-rw-r--r--src/common/stack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/stack.c b/src/common/stack.c
index 02d3207..269dbc4 100644
--- a/src/common/stack.c
+++ b/src/common/stack.c
@@ -26,6 +26,7 @@ void stack_destroy(t_stack *stack)
void stack_push(t_stack *stack, int n)
{
stack->top++;
+ printf("%d\n", stack->top);
stack->elements[stack->top] = n;
}