Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void print_bit(queue *queue, ht *hash, long int h){
- printf("%ld: ", h);
- node *current = hash->table[h]->fila->front;
- while(current != NULL){
- printf("%d->", current->data);
- current = current->next;
- }
- printf("NULL\n");
- }
- void compress(FILE *file, ht *hash, queue *fila){
- unsigned char element;
- while(1){
- element = fgetc(file);
- element = (long int)element;
- print_bit(fila, hash, element);
- if(feof(file)){
- break;
- }
- }
- }
- compress(file, hash_table, queue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement