文件名称:自己的链表程序list.c
文件大小:645B
文件格式:C
更新时间:2016-04-19 03:45:21
链表
liststruct list_head{ struct list_head *prev; struct list_head *next; datatype data; }; void init(struct list_head *list) { list->next=list; list->prev=list; } void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) { next->prev = new; new->next = next; new->prev = prev; prev->next = new; }