双向链表(链表尾加数据链表头加数据删除销毁)

来源:互联网 发布:apache python写网页 编辑:程序博客网 时间:2024/05/03 05:41

#include"list.h"

 

//创建一个空的链表 

struct  node  *list_create(int size)

{

struct node *head  = NULL;

}

int list_addtail(struct node *head, void *dat)

{

 

}

int list_addhead(struct *head,void *dat)

 

 

void  list_destroy(struct node **root)

{

          struct node *head,*cur,*next;

          head = *root;

          for(cur = head; cur != NULL;cur = next)

          {

      

           }

 

}