formatting pass.
This commit is contained in:
parent
aef8269a68
commit
443b7503f9
7
wc.c
7
wc.c
|
@ -15,16 +15,15 @@ int main(int argc, char** argv)
|
|||
{
|
||||
if (!isatty(STDIN_FILENO)) {
|
||||
return process_fn(STDIN_FILENO);
|
||||
} else if(argc > 1){
|
||||
} else if (argc > 1) {
|
||||
FILE* fp = fopen(argv[1], "r");
|
||||
if(!fp){
|
||||
if (!fp) {
|
||||
perror("Could not open file");
|
||||
return 1;
|
||||
}
|
||||
return process_fn(fileno(fp));
|
||||
} else{
|
||||
} else {
|
||||
printf("To do");
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user