char x[30];
int index, countC;
- if (!cdtaus)
+ if (!cdtaus) {{
if (!(fdtaus = fopen("DTAUS0.TXT", "r")))
if (!(fdtaus = fopen("dtaus0.txt", "r")))
return;
- if (cdtaus)
- if (!(fdtaus = fopen(cdtaus, "r")))
- return;
- if (!ccontrol)
+ } else {
+ if (!strcmp (cdtaus, "-"))
+ fdtaus = stdin;
+ else
+ if (!(fdtaus = fopen(cdtaus, "r")))
+ return;
+ }
+ if (!ccontrol)
fcontrol = stdout;
else
- if (!(fcontrol = fopen(ccontrol, "w")))
- return;
+ if (!strcmp (ccontrol, "-"))
+ fcontrol = stdout;
+ else
+ if (!(fcontrol = fopen(ccontrol, "w")))
+ return;
if (!(buf = (char *)malloc (512)))
return;
char *cp;
int textindex = 0;
- if (!cdtaus)
+ if (!cdtaus) {
if (!(fdtaus = fopen("dtaus0.txt", "w")))
return 0;
- if (cdtaus)
- if (!(fdtaus = fopen(cdtaus, "w")))
- return 0;
- if (!ccontrol)
+ } else {
+ if (!strcmp (cdtaus, "-"))
+ fdtaus = stdout;
+ else
+ if (!(fdtaus = fopen(cdtaus, "w")))
+ return 0;
+ }
+ if (!ccontrol) {
if (!(fcontrol = fopen("dtaus0.ctl", "r")))
if (!(fcontrol = fopen("DTAUS0.CTL", "r")))
return 0;
- if (ccontrol)
- if (!(fcontrol = fopen(ccontrol, "r")))
- return 0;
- if (!cbeleg)
+ } else {
+ if (!strcmp (ccontrol, "-"))
+ fcontrol = stdin;
+ else
+ if (!(fcontrol = fopen(ccontrol, "r")))
+ return 0;
+ }
+ if (!cbeleg) {
if (!(fbeleg = fopen("dtaus0.doc", "w")))
return 0;
- if (cbeleg)
+ } else {
if (!(fbeleg = fopen(cbeleg, "w")))
return 0;
+ }
if (!ccheck)
fcheck = stdout;
else