The Null Device


My latest contribution to the corpus of GPLed code: jfifextract, a quick-and-dirty POSIX command-line program which goes through a file/disk volume (of arbitrary size; it uses mmap(2)), finds spans that look like JPEG files and writes them to a directory. This was not a dry academic exercise, mind you, but was necessitated by a dodgy memory card that somehow "misplaced" a directory full of photos somewhere between Sydney and Byron Bay.

code data recovery jfif jpeg 0