Searched refs:new_node (Results 1 – 2 of 2) sorted by relevance
79 Node *new_node = (Node *) malloc(sizeof(Node)); in push() local81 if (new_node == NULL) in push()84 new_node->element = element; in push()85 new_node->next = NULL; in push()88 q->head = new_node; in push()90 q->tail->next = new_node; in push()93 q->tail = new_node; in push()
81 Node *new_node = (Node *) malloc(sizeof(Node)); in push() local83 if (new_node == NULL) in push()86 new_node->element = element; in push()87 new_node->next = NULL; in push()91 q->head = new_node; in push()95 q->tail->next = new_node; in push()98 q->tail = new_node; in push()