Files
open-simh.simtools/extracters/rstsflx/dotype.c
Paul Koning bf7c17ab4a Add RSTSFLX V2.6. This is a file system access utility for RSTS
file systems.  It supports reading and writing as well as a number
of other operations, such as octal dump, file system initialize,
and file system check ("clean").

This was originally maintained as a Subversion repository at
svn://akdesign.dyndns.org/flx/branches/V2.6.
as suggested by Timothe Litt on the SIMH mailing list.
2016-04-27 15:00:42 -04:00

29 lines
529 B
C

/* handler for the "type" command */
#include <stdio.h>
#include "flx.h"
#include "fldef.h"
#include "dotype.h"
#include "fip.h"
#include "filename.h"
#include "fileio.h"
#include "scancmd.h"
void typefile (firqb *f)
{
if (sw.verbose != NULL) {
printf ("\n----- ");
printcurname (f);
printf (" -----\n");
}
getfile (stdout, f, FALSE); /* put it on stdout */
}
void dotype (int argc, char **argv)
{
rmount (); /* mount the disk */
dofiles (argc, argv, typefile, NOTNULL);
rumount (); /* done with disk */
}