Latest and greatest

This commit is contained in:
Eric Andersen
1999-12-08 23:19:36 +00:00
parent 2285f367e2
commit abc0f4f8f9
20 changed files with 2188 additions and 75 deletions

View File

@ -46,10 +46,9 @@ extern int cat_main(int argc, char **argv)
usage ("cat [file ...]\n");
}
argc--;
argv++;
while (argc-- > 0) {
file = fopen(*(argv++), "r");
while (argc-- > 0 && *(argv++) != '\0' && strlen(*argv) ) {
file = fopen(*argv, "r");
if (file == NULL) {
perror(*argv);
exit(FALSE);