Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 12172

recover.c, one of the assignments for Problem Set 4, will challenge you to search through the raw bytes of a camera's digital memory to recover a bunch of "deleted" JPEG images.

0 votes
Accepted

My program says that "No rule to make target `recover'. Stop."

Make certain that your source code is called recover.c and the source file is in the same current working directory that you are executing the make recover command in. …
hotwebmatter's user avatar
  • 3,050
1 vote
Accepted

Pset4 recover: can't seem to use struct to identify the jpg

You're overthinking this. A struct is not necessary here. Why not try storing your identifiers in an array instead?
hotwebmatter's user avatar
  • 3,050
3 votes
Accepted

Pset4 recover, comparing hex in if statements

@Blauelf is correct: you can't count on char to be an unsigned 8-bit int. However, you can use a typedef to make certain that a BYTE is really a byte. Look at these type definitions, borrowed from b …
hotwebmatter's user avatar
  • 3,050
1 vote
Accepted

Pset4 recover.c compiles, but can't seem to print Jpgs at all

Just to be crystal clear: if (data[3] != 0xe0 || data[3] != 0xe0 || data[3] != 0xe1 || data[3] != 0xe2 || data[3] != 0xe3 || data[3] != 0xe4 || data[3] != 0xe5 || data[3] != 0xe6 || data[3] != 0xe7 | …
hotwebmatter's user avatar
  • 3,050