formatting
This commit is contained in:
parent
e6b5538ae0
commit
59eecf37bf
|
@ -96,11 +96,9 @@ void reverse_list(void) {
|
||||||
struct Node *tmp1;
|
struct Node *tmp1;
|
||||||
struct Node *tmp2;
|
struct Node *tmp2;
|
||||||
|
|
||||||
tmp1 = head;
|
tmp1 = tail;
|
||||||
head = tail;
|
tail = head;
|
||||||
tail = tmp1;
|
head = tmp1;
|
||||||
|
|
||||||
tmp1 = head;
|
|
||||||
while (tmp1 != NULL) {
|
while (tmp1 != NULL) {
|
||||||
tmp2 = tmp1->next;
|
tmp2 = tmp1->next;
|
||||||
tmp1->next = tmp1->prev;
|
tmp1->next = tmp1->prev;
|
||||||
|
|
Loading…
Reference in a new issue