/* ** DREL.C -- dump REL or LIB file ** ** Copyright 1985 J. E. Hendrix ** ** No command line switches are accepted. The user is prompted ** for each file to be jumped. Output goes to the standard ** output file and is, therefore, redirectable to any output ** device or to a disk file. If an input file cannot be found * the user is prompted for another input file. File names must ** be given, complete with extensions, Drive specifiers may be ** given. */ #include #include "notice.h" #include "mac.h" #include "rel.h" main() { char fn[MAXFN]; fputs("Small-Mac REL/LIB Dump Utility, ", stderr); fputs(VERSION, stderr); fputs(CRIGHT1, stderr); while(YES) { if(!reqstr("Library/Module Name: ", fn, MAXFN)) exit(); if(!(inrel = fopen(fn, "r"))) continue; do { poll(YES); /* poll for user interrupt */ if(getrel() == ERR) abort(7); /* get next REL item */ seerel(); /* display it */ } while(item != EFILE); fclose(inrel); } }