aboutsummaryrefslogtreecommitdiff
path: root/src/common/stack_core.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-19 14:21:53 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-19 14:21:53 +0100
commit6be6c78c8856b14c19a1958dfa3993cc0ced1b3f (patch)
tree68871b12df49d623dda8cfcbda0da810045608e4 /src/common/stack_core.c
parent2b4327b7a448228f67a054b4bdaa3f84b9db2164 (diff)
downloadpush_swap-6be6c78c8856b14c19a1958dfa3993cc0ced1b3f.tar.gz
push_swap-6be6c78c8856b14c19a1958dfa3993cc0ced1b3f.tar.bz2
push_swap-6be6c78c8856b14c19a1958dfa3993cc0ced1b3f.zip
Added stack operation visualizer, random stack generator, quick sort of some sort (WIP)
Diffstat (limited to 'src/common/stack_core.c')
-rw-r--r--src/common/stack_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/stack_core.c b/src/common/stack_core.c
index 6875862..bf766d4 100644
--- a/src/common/stack_core.c
+++ b/src/common/stack_core.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/19 06:37:45 by cacharle #+# #+# */
-/* Updated: 2020/01/19 06:50:50 by cacharle ### ########.fr */
+/* Updated: 2020/01/19 13:33:08 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,6 +24,7 @@ t_stack *stack_new(int size)
return (NULL);
}
stack->top = -1;
+ stack->tag = STACK_NO_TAG;
return (stack);
}