1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #ifndef __HUFFMAN_H__
#define __HUFFMAN_H__
typedef struct _Node {
void* a_value;
struct _Node* next;
} Node;
Node* pq_enqueue(Node** a_head, void* a_value, int (*cmp_fn)(const void*, const void*));
Node* pq_dequeue(Node** a_head);
Node* stack_push(Node** a_head, void* a_value);
Node* stack_pop(Node** a_head);
void destroy_list(Node** a_head, void (*destroy_value_fn)(void*));
#endif
#define HUFFMAN_H_V2
|
© Copyright 2022 Alexander J. Quinn This content is protected and may not be shared, uploaded, or distributed.