Category : Word Processors
Archive   : PAGINATE.ZIP
Filename : PAGINATE.C

 
Output of file : PAGINATE.C contained in archive : PAGINATE.ZIP
/*
NAME: paginate.c - January 20, 1988
SYSTEM: PC'S Limited 286-8, MS-DOS 3.20, 1024K, EGA
LANGUAGE: Turbo C Version 1.00
DESCRIPTION: Paginate a file
*/
# include

# define NO 0
# define YES 1

FILE *fp1,*fp2;

main(argc,argv)
int argc;
char *argv[];
{
int c, lc = 0;

if (argc == 1)
fp1 = stdin;
else
fp1 = fopen(*++argv,"r");
fp2 = stdout;
while ((c = getc(fp1)) != EOF) {
putc(c,fp2);
if (c == '\n')
lc++;
if (lc == 60) {
lc = 0;
fprintf(stdout,"\f");
fprintf(stdout,"\n\n");
}
}
return;
}


  3 Responses to “Category : Word Processors
Archive   : PAGINATE.ZIP
Filename : PAGINATE.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/