Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Node* restore_tree(struct Node *node, T_bit_file *bf, struct T_smart_byte *byte){
- int bit = f_get_bit(bf);
- if (bit) {
- for (int i = 0; i < 8; ++i) {
- set_bit(byte, f_get_bit(bf), NULL);
- }
- return create_queue_item((char)byte->data, EOF, NULL, NULL);
- }
- node = create_queue_item(EOF, -1, NULL, NULL);
- node->left = restore_tree(NULL, bf, byte);
- node->right = restore_tree(NULL, bf, byte);
- return node;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement