From eeca88e98212d7b61253b4be5f4ebb2f4b36e770 Mon Sep 17 00:00:00 2001 From: dan <me@danrh.co.uk> Date: Mon, 29 May 2023 16:04:01 -0400 Subject: feat: tuck and clearstack commands --- stack.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stack.c') 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; +} -- cgit v1.2.3