MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / stackTop

Function stackTop

S-Stack/stackADTUsingLL.cpp:67–72  ·  view source on GitHub ↗

----------------This function retrieves stack top--------------------------*/

Source from the content-addressed store, hash-verified

65
66/*----------------This function retrieves stack top--------------------------*/
67void* 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-------------*/
75bool emptyStack(STACK* stack){

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected