Needed help in pset4 recover.c .The code is compiling and executing but it is not producing any images.
1 Answer
The logic of your program has a "small bug", just you are writing in the output if you find a jpg, so you write 512 bytes for each jpg:
if (buffer[0] == 0xff && ...)
{
.......
fwrite...
}
be sure to write outside the IF condition