lz1 icon indicating copy to clipboard operation
lz1 copied to clipboard

C program to compress and uncompress using the lz77 algorithm.

Results 2 lz1 issues
Sort by recently updated
recently updated
newest added

Hi, Thanks for your useful compression code. I found there is a bug in here. The line: ` for(temp_pointer_length = 0; && uncompressed_text[look_ahead++] == uncompressed_text[look_behind++]; ++temp_pointer_length)` Should be changed to:...

``` printf("Compressed (%i): %u, decompressed: (%u)\n", i, file_lz77_compress("./lz.c", "lz.c.z77", 10000000, i), file_lz77_decompress("./lz.c.z77", "lz-2.c")) ``` C evaluates parameters right-to-left, so decompress gets called before compress, with the result that the correct...