Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
// asciidump.c, by Andrew Brock
// This is invoked by hddimg.
// Version: 2008apr22 (with a header added by Edrx)
// License unclear - he sent me this by e-mail.
// http://angg.twu.net/PLURALL/asciidump.c.html
// http://angg.twu.net/PLURALL/asciidump.c
// http://angg.twu.net/PLURALL/hddimg.html
// http://angg.twu.net/PLURALL/hddimg
// (find-es "plurall" "hddimg")

#include <stdio.h>

//asciidump "number" "filename"

int main(int argv, char *argc[]) {
	if (argv != 3) {
		return 1;
	}
	unsigned long number;
	sscanf(argc[1], "%d", &number);
	FILE *f = fopen(argc[2], "wb");
	fputc(number & 0xFF, f);
	fputc((number >> 8) & 0xFF, f);
	fputc((number >> 16) & 0xFF, f);
	fputc((number >> 24) & 0xFF, f);
	fclose(f);
	return 0;
}