#include #include "generic.h" #include "Input.h" #include "Output.h" #include "Main.h" CODE_BEGINS int startup() { Handle * f, * o; int i = 0; f = new Input(argv[1]); int offset = 0; while (1) { int sector, size; f->seek(offset, SEEK_SET); f->read(§or, 4); f->read(&size, 4); offset += 8; if (!sector) break; f->seek(sector <<= 9, SEEK_SET); String fname; fname.set("unarc-%03i.out", i); o = new Output(fname); copy(f, o, size); delete o; i++; } delete f; return -1; } CODE_ENDS