Skip to content
Snippets Groups Projects
stack.c 597 B
#include "stack.h"
#include <string.h> /* strdup */
#include <stdio.h> /* printf */
#include <stdlib.h> /* malloc, free */
#include <stdbool.h>

// const empty_stack = false;

// bool StackIsEmpty(stack *s) 
// {
//     return s == NULL;
// }

// stack StackPush(stack s) {
//     stack *new_s = malloc(sizeof(stack));
//     new_s->
//     return
// }


// stack stackHead(stack *s) 
// {   stack neww_s;
//     neww_s = LocationPrint(loc);
//     LocationDelete(s);
//     return  new_s;  
// }

// stack stackPop(stack *s) 
// {
//         stack old_s = stackHead(s);
//         return *s;
// }