You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I beg a pardon if this is not apropriate place to ask such questions, but unfortunatelly i can't find more appropriate place to ask it.
In Problem Set 4, Specifications described only 2 error states:
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, as with fprintf (to stderr), and main should return 1.
If the forensic image cannot be opened for reading, your program should inform the user as much, as with fprintf (to stderr), and main should return 2.
Aren't we suppose also to return error (let's say with a code 3), in case if program can't create a restored image file. Here is a code i am talking about that cover this missing note
The text was updated successfully, but these errors were encountered:
Hi @butuzov. The only two we're demanding students do are the two you point out. Technically the third thing you are pointing out there is something we would generally hope students would figure out as a matter of good design of working with files, but we don't explicitly mention it in the spec. Good question though, and the fact that you do anticipate this error and handle it is a great thing, it shows you're thinking about design in the right way!
I beg a pardon if this is not apropriate place to ask such questions, but unfortunatelly i can't find more appropriate place to ask it.
In Problem Set 4, Specifications described only 2 error states:
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, as with
fprintf
(tostderr
), andmain
should return1
.If the forensic image cannot be opened for reading, your program should inform the user as much, as with
fprintf
(tostderr
), andmain
should return2
.Aren't we suppose also to return error (let's say with a code
3
), in case if program can't create a restored image file. Here is a code i am talking about that cover thismissing
noteThe text was updated successfully, but these errors were encountered: