If a function prototype is given in a 2 dimensional linked list as void InsertNode(NODE<T>*pNode, NODE<T>*pAfter,NODE<T>**pTail)
, and all the necessary codings for inserting a new node is done for its function implementation, i.e,
void InsertNode(NODE<T>*pNode, NODE<T>*pAfter, NODE<T>**pTail)
{
pNode->pNext = pAfter -> pNext;
pNode->pPrev = pAfter;
if(pAfter->pNext!=NULL)
pAfter->pNext->pPrev = pNode;
else
*pTail = pNode;
pAfter->pNext = pNode;
}
How do I call this function?