Umel by nekdo prepsat tento kod do C?
Program DekompreseRLE;
Uses CRT;
var fi : file of byte;
fo : text;
i,j,b : byte;
Begin
Clrscr;
assign(fi,'text.kmp');
reset(fi);
assign(fo,'text.dat');
rewrite(fo);
while not eof(fi) do
Begin
read(fi,b);
if (b and $c0) = $c0 then
begin
j:= b and $3f;
read (fi,b);
for i:= 1 to j do
write(fo,char(b));
end
else
write(fo,char(b));
end;
Close(fi);
Close(fo);
End.