typedef struct dnode
{
int data;
struct dnode *prior;
struct dnode *next;
}DNode;
void destroryDNode(DNode *head)
{
DNode *p = head->next;
DNode *q = NULL;
DNode *r = NULL;
for(q=p; q->next!=NULL; q=r)
{
r = q->next;
free(q);
q->next=NULL;
}
free(r);
free(head);
head=NULL;
}
阅读(928) | 评论(0) | 转发(0) |