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
@@ -96,4 +96,5 @@ void stack_clear(stack *s)
{
s->top = -1;
s->capacity = DEFAULT_CAPACITY;
s->data = realloc(s->data, sizeof(int) * s->capacity);
}
\ No newline at end of file
Loading