/* --- Open files --- */
- if (!ifile)
+ if (!ifile || strcmp(ifile, "-") == 0)
ifp = stdin;
else if ((ifp = fopen(ifile, (f & f_raw) ? "rb" : "r")) == 0) {
die(EXIT_FAILURE, "couldn't open input file `%s': %s",
ifile, strerror(errno));
}
- if (!ofile)
+ if (!ofile || strcmp(ofile, "-") == 0)
ofp = stdout;
else if ((ofp = fopen(ofile, (f & f_bin) ? "wb" : "w")) == 0) {
die(EXIT_FAILURE, "couldn't open output file `%s': %s",