Skip to content
Snippets Groups Projects

Resolve "Add destroy function"

Merged joey.martig requested to merge 9-add-destroy-function into main
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
stack.c 0 → 100644
+ 11
0
#include <stdio.h>
#include <stdbool.h>
#include <stdbool.h>
#include "stack.h"
void stack_destroy(stack *s){
free(s->data);
s->data = NULL;
s->capacity = -1;
s->top = -1;
}
\ No newline at end of file
Loading