Print a doubly linked list in reverse order?
问题 My minimal reproducible example: #include <stdio.h> #include <stdlib.h> typedef struct NodeStruct Node; //struct for each office item struct NodeStruct { int id; struct NodeStruct *next; struct NodeStruct *prev; //Create doubly linked list node }; /** Structure for the whole list, including head and tail pointers. */ typedef struct { /** Pointer to the first node on the list (or NULL ). */ Node *head; Node *last; } List; List *list; List *makeList(); static void *addRecord(List *list, int