Lines Matching defs:current
26 list->current = (node_t *) malloc (sizeof(struct _list_t));
27 if (list->current == NULL) {
32 list->head = list->current;
34 list->previous->next = list->current;
35 list->current->obj = obj;
36 list->current->next = NULL;
37 list->previous = list->current;
41 node_t *current;
46 current = list->head; // go to first node
48 printf("%d\n", (int)current->obj); // print value at current node
49 current = current->next; // traverse through the list
50 } while(current != NULL); // until current node is NULL
55 node_t *current = list->head; // go to first node
59 current = list->head; // go to first node
61 next = current->next;
62 free(current);
63 current = next;
64 } while(current != NULL); // until current node is NULL