home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug103.arc
/
DREL.C
< prev
next >
Wrap
Text File
|
1979-12-31
|
1KB
|
34 lines
/*
** 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 dumped. 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 <stdio.h>
#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);
}
}