Category : Printer Utilities
Archive   : CRAMIT.ZIP
Filename : FILTER.C
#define REC_SIZE 256
main ()
{
int status = 0;
char file_buf[REC_SIZE];
while ( (status = fread (file_buf, 1, REC_SIZE, stdin) ) != 0 ) {
filter_rec (file_buf, status);
}
return (0);
}
int _nullcheck () {};
int _setenvp () {};
int _setargv () {};
int filter_rec (file_buf, record_size)
char *file_buf;
int record_size;
{
int i;
static int cr_detected = 0;
for (i = 0; i < record_size; i++) {
if (file_buf[i] == 0x0D) cr_detected = 1;
if (file_buf[i] == 0x0A) cr_detected = 0;
if (!cr_detected) putc (file_buf[i], stdout);
}
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/