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

Function createStack

S-Stack/stackADTUsingLL.cpp:16–25  ·  view source on GitHub ↗

----------------This function creates new stack--------------------------*/

Source from the content-addressed store, hash-verified

14
15/*----------------This function creates new stack--------------------------*/
16STACK* createStack(){
17 STACK* stack;
18
19 stack = (STACK*)malloc(sizeof(STACK));
20 if(stack){
21 stack -> count = 0;
22 stack -> top = NULL;
23 }
24 return stack;
25}
26
27/*----------------This function pushes the data into the node--------------------------*/
28bool pushStack(STACK* stack, void* dataIn){

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected