Implement a program that recovers JPEGs from a forensic image, per the below.
$ ./recover card.raw
Implement a program called recover recover
that recovers JPEGs from a forensic image.
-
Implement your program in a file called
recover.c
in a directory calledrecover
-
Your program should accept exactly one command-line argument, the name of a forensic image from which to recover JPEGs.
-
If your program is not executed with exactly one command-line argument, it should remind the user of correct usage, and
main
should return1
. -
Your program, if it uses
malloc
, must not leak any memory.
Your program should behave per the examples below.
$ ./recover
Usage: ./recover image
$ ./recover card.raw
Harvard CS50 exercise: https://cs50.harvard.edu/x/2020/psets/4/recover/#:~:text=y%20card,%20but%20t