Skip to content
Snippets Groups Projects
Select Git revision
  • de66bad21aa79394a5629c76a06383e4c7966ffa
  • main default protected
  • 3-add-makefile-with-structure
  • 9-add-destroy-function-4
  • 4-add-create-init-function
  • 5-add-push-function-2
  • 9-add-destroy-function-3
  • 9-add-destroy-function-2
  • v0.1
9 results

stack.c

Blame
  • stack.c 190 B
    #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;
    }