
/* =======================================================
   Data structure used to implement a stack of integers
   ======================================================= */
struct intStack
{
   int *s;           	// Dynamic array
   int stackTop;	// Stack top
};

typedef struct intStack   intStack;


/* =======================================================
   Declare functions that manipulate a integer stack
   ======================================================= */
void intStackInitialize(intStack *stackObj, int N);  
                            // Create a stack for N int's

void intStackPush( intStack *stackObj, int x);  // Push x on stackObj
int  intStackPop ( intStack *stackObj);         // Pop top of stack and return in
int  intStackPeek( intStack *stackObj);         // Peek at the top of stack

