Lines Matching refs:list
16 struct node *insert(struct node *x, struct node *list) {
17 x->next = list;
21 struct node *sorted_insert(struct node *x, struct node *list) {
22 struct node *prev = 0, *cur = list;
28 return list;
30 x->next = list;
39 return list;
42 struct node *reverse(struct node *list) {
44 while (list) {
45 struct node *next = list->next;
46 list->next = rev;
47 rev = list;
48 list = next;
53 struct node *revappend(struct node *list, struct node *dest) {
54 while (list) {
55 struct node *next = list->next;
56 list->next = dest;
57 dest = list;
58 list = next;