/* BEGIN list_lib.h */ /* ** This code is donated ** to the public domain by the author, Pete Filandro. */ #ifndef H_LIST_LIB_H #define H_LIST_LIB_H #include "list_type.h" #include list_type * list_append(list_type **head, list_type *tail, void *data, size_t size); void list_free(list_type *node, void (*free_data)(void *)); void list_collate(list_type *node, int (*compar)(const void *, const void *), void (*data_merge)(list_type *)); list_type * list_merge(list_type *head, list_type *tail, int (*compar)(const void *, const void *)); list_type * list_sort(list_type *head, int (*compar)(const void *, const void *)); #endif /* END list_lib.h */