Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Node *node;
- node = initialise_node();
- node->data = data;
- node->prev = nodeB->prev;
- node->next = nodeB;
- if(prevN)
- nodeB->prev->next = node;
- else {
- if(list->head) {
- list->head->prev = node;
- }
- list->head = node;
- }
- nodeB->prev = node;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement