diff --git a/stack.c b/stack.c new file mode 100644 index 0000000000000000000000000000000000000000..17e97c4d7ed49ad2954b435b5224ebc1835954e8 --- /dev/null +++ b/stack.c @@ -0,0 +1,11 @@ +#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