Skip to content
Snippets Groups Projects

Resolve "Add clear function"

Merged orestis.malaspin requested to merge 13-add-clear-function into main
All threads resolved!
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -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
Loading