Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- typedef struct _list
- {
- int size; //number of unique characters
- char* charList;
- int* freqList;
- } List;
- typedef struct _TreeNode {
- int freq;
- unsigned char asciiChar;
- struct _TreeNode *left;
- struct _TreeNode *right;
- } TreeNode;
- typedef struct _Node {
- TreeNode* ptr;
- struct _Node *next;
- } Node;
- List* find_frequency(char* filename);
- void write_output_1(char* filename, List* countList);
- Node* _pq_enqueue(Node **pq, TreeNode* new_object, int (*cmp_fn)(const void *, const void *));
- void _print_node(Node *list, FILE* fp);
- //int _print_fn(TreeNode* tree);
- int _compare_fn(const void * num, const void *test);
Add Comment
Please, Sign In to add comment