while (pStack.top != NULL)
{
del = pStack.top->next; /* 栈顶节点的前一个节点 */
free(pStack.top); /* 释放节点 */
pStack.top = del; /* 栈顶指针移动到新栈顶 */
}
return pStack;
}
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx