Initial commit

This commit is contained in:
Bassem Girgis
2018-12-20 17:34:07 -06:00
parent 7a2d899662
commit 81b4b9e273
34743 changed files with 5940233 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#ifndef STACK_H
#define STACK_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct stack_t {
int size;
int* vals;
int capacity;
} stack_t;
stack_t* stack_create();
void stack_free(stack_t* stack);
int stack_size(stack_t* stack);
void stack_push(stack_t* stack, int val);
int stack_pop(stack_t* stack);
int stack_peak(stack_t* stack);
int stack_capacity(stack_t* stack);
#ifdef __cplusplus
}
#endif
#endif