First prints all files named on the command line, and then
asks for names of more files to print until a null line is typed.
Control-Q aborts current printing and goes to next file.
Paper should be positioned ready to print on the first page; each
file is always printed in an even number of pages so that new files
always start on the same phase of fan-fold paper.
Tabs are expanded into spaces.
*/
#include "bdscio.h"
#define FF 0x0c /* formfeed character, or zero if not supported */
#define PGLEN 85 /* lines per lineprinter page */
int colno, linesleft;
main(argc,argv)
char **argv;
{
int i, pgno, fd;
char date[30], linebuf[135]; /* date and line buffers */
char fnbuf[30], *fname; /* filename buffer & ptr */
char ibuf[BUFSIZ]; /* buffered input buffer */
char *gets();