aboutsummaryrefslogtreecommitdiffstats
path: root/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack.c')
-rw-r--r--stack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stack.c b/stack.c
index e1f0281..0fe7235 100644
--- a/stack.c
+++ b/stack.c
@@ -77,3 +77,7 @@ void stack_pick(stack *s) {
stack_push(s, 0);
}
}
+
+void stack_clear(stack* s) {
+ s->size = 0;
+}