-
- /*
- * cat allows "-" as stdin anywhere in the arg list,
- * might as well here, too. Again, should use "stdin"
- * as the file name.
- */
- do {
- if (!strcmp(*argv, "-")) {
- cnt((char *)NULL);
- putchar('\n');
- }
- else {
- cnt(*argv);
- printf(" %s\n", *argv);
- }