Skip to content
Snippets Groups Projects
Commit de66bad2 authored by joey's avatar joey
Browse files

Function destroy

parent 6e8cc6fa
No related branches found
No related tags found
1 merge request!18Resolve "Add destroy function"
This commit is part of merge request !18. Comments created here will be created in the context of that merge request.
stack.c 0 → 100644
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment