This commit is contained in:
Eric Andersen
1999-11-23 21:38:12 +00:00
parent cb41c2e83b
commit 394f764e7d
6 changed files with 49 additions and 26 deletions

View File

@ -49,14 +49,12 @@ extern int cat_main(int argc, char **argv)
argv++;
while (argc-- > 0) {
file = fopen(*argv, "r");
file = fopen(*(argv++), "r");
if (file == NULL) {
perror(*argv);
exit(FALSE);
}
print_file( file);
argc--;
argv++;
}
exit(TRUE);
}