home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
OSKBox.lzh
/
MAILBOX
/
CC
/
pfilter.c
< prev
next >
Wrap
Text File
|
1987-10-04
|
598b
|
27 lines
main ()
{
int len;
char line[300], *p;
char *str = "^ ";
int time, oldtime, date, day, tick;
while ((len = readln (0, line, 300)) > 0) {
_sysdate (0, &time, &date, &day, &tick);
if ((time & 0xffff00) != (oldtime & 0xffff00)) {
char str2[10];
oldtime = time;
sprintf (str2, "%02d:%02d\n", (time >> 16) & 0xff, (time >> 8) & 0xff);
writeln (1, str2, strlen (str2));
}
for (p = line; p - line < len; p++) {
if ((*p & 0x7f) < ' ' && *p != '\n' && *p != '\t') {
str[1] = (*p & 0x7f) + '@';
writeln (1, str, 2);
}
else
writeln (1, p, 1);
}
}
}