typedef struct NODE {
struct NODE *next;
void *value;
} Node;
typedef struct LINK {
struct NODE *head;
} Link;
void value_output(void *value) {
......
}
void link_output(Link *link) {
Node *curr = link->head;
while (curr != NULL) {
value_output(curr->value);
curr = curr->next;
}
}
温馨提示:答案为网友推荐,仅供参考