diff --git a/stack.c b/stack.c index 9f0282813f9a049745484cc3cabfed99386f52a2..7380615365c9ff15134d68009437f6d936444813 100644 --- a/stack.c +++ b/stack.c @@ -1,2 +1 @@ -#include "../include/stack.h" -#include <stdio.h> +#include "stack.h" diff --git a/stack.h b/stack.h index 2fc55ac83ca77eea847e4ce4fe901959400c4b6e..dccf535257d023f424dab94a320a025507f7c378 100644 --- a/stack.h +++ b/stack.h @@ -1,4 +1,10 @@ -#ifndef STACK_H -#define STACK_H +#ifndef _STACK_H_ +#define _STACK_H_ + +typedef struct _stack { + int *data; + int capacity; + int top; +} stack; #endif \ No newline at end of file