1
 2
 3
 4
 5
 6
 7
 8
 9
10
typedef struct _Node {
    void* a_value;  // This is the same spirit as with qsort(…) in HW13.
    struct _Node* next;
} Node;

void append(void* a_value, Node** a_head, Node** a_tail);
void print_list(Node* head, void(*print_one_element_fn)(void*));
void free_list(Node** a_head, Node** a_tail, void(*free_value_fn)(void*));

/* vim: set tabstop=4 shiftwidth=4 fileencoding=utf-8 noexpandtab: */

© Copyright 2021 Alexander J. Quinn         This content is protected and may not be shared, uploaded, or distributed.