// stack with integer values #ifndef _ISTACK_H_ #define _ISTACK_H_ #include #include // Structure for a stack item struct StackItem { int value; // Data value of this item in the list StackItem * next; // Pointer to next item in list }; // Initialize the stack as empty void stackInitialize(StackItem * stack); // Push the value on the stack void push(StackItem * stack, int n); // Pop the top value int pop(StackItem * stack); // Check if stack is empty int stackIsEmpty(StackItem * stack); // Display the stack void stackDisplay(StackItem * stack); #endif