Skip to content
Snippets Groups Projects
Select Git revision
  • 9127c5dd1b903783d9ae5f94d12700e7a5ca578f
  • 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.h

Blame
  • stack.h 157 B
    #ifndef _STACK_H_
    #define _STACK_H_
    
    typedef struct _stack {
        int *data;
        int capacity;
        int top;
    } stack;
    
    void peek(stack s, int *value);
    
    #endif