1
2
3
4
5
6
7
8
9
typedef struct _Node {
    //int value;
    void* a_value;
    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)(void*));

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