formatting pass.

This commit is contained in:
NunoSempere 2023-09-08 23:23:18 +02:00
parent aef8269a68
commit 443b7503f9

7
wc.c
View File

@ -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;
}