This is my code of the program that recovers JPEGs from a forensic image, for Harvard's CS50 problems set 4.
-
Program should accept exactly one command-line argument, the name of a forensic image from which to recover JPEGs.
-
If program is not executed with exactly one command-line argument, it should remind the user of correct usage, and main should return 1.
-
If the forensic image cannot be opened for reading, program should inform the user as much, and main should return 1.
-
Program, if it uses malloc, must not leak any memory.
For more detailed specifications, see: https://cs50.harvard.edu/x/2020/psets/4/recover/