Skip to content
Snippets Groups Projects

Resolve "Add destroy function"

Merged joey.martig requested to merge 9-add-destroy-function into main
2 files
+ 10
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 8
0
 
#include <stdio.h>
#include "stack.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