Run-length encoding/C: Difference between revisions
Content added Content deleted
(moved from Run-length encoding) |
(Removed extra loop from the rle_decode() which resulted to incorrect return value and strange output.) |
||
Line 38: | Line 38: | ||
char c; |
char c; |
||
for(tb=0 ; l> |
for(tb=0 ; l>0 ; l -= 2 ) { |
||
i = *in++; |
i = *in++; |
||
c = *in++; |
c = *in++; |