----------------This function retrieves stack top--------------------------*/
| 65 | |
| 66 | /*----------------This function retrieves stack top--------------------------*/ |
| 67 | void* stackTop(STACK* stack){ |
| 68 | if(stack -> count == 0) |
| 69 | return NULL; |
| 70 | else |
| 71 | return stack -> top -> dataPtr; |
| 72 | } |
| 73 | |
| 74 | /*----------------This function checks whether the stack is empty-------------*/ |
| 75 | bool emptyStack(STACK* stack){ |