Skip to content
Snippets Groups Projects
Commit c0c5bb92 authored by jonas.stirnema's avatar jonas.stirnema
Browse files

Resized capacity to default when clearing stack

parent 2e0992eb
No related branches found
No related tags found
1 merge request!20Resolve "Add clear function"
This commit is part of merge request !20. Comments created here will be created in the context of that merge request.
...@@ -95,4 +95,5 @@ bool stack_is_empty(stack s) ...@@ -95,4 +95,5 @@ bool stack_is_empty(stack s)
void stack_clear(stack *s) void stack_clear(stack *s)
{ {
s->top = -1; s->top = -1;
s->capacity = DEFAULT_CAPACITY;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment