Having problems with recover (pset5) now. This is what I'm doing:
Opening File
Until the end of file
Reading 512 bytes to buffer
Checking first 4 bytes of buffer to see if a jpg has just started
A jpg has started. Check if there was one open
Close the jpg that was opened
Create new file
Open new file
If there is an open jpg write info from buffer to it
The manipulation of the images is perfect, but checkcs50 says the following:
https://sandbox.cs50.net/checks/e73d3cd7ceef4c97957523741b77f79e