some formatting changes
This commit is contained in:
parent
ab1da63822
commit
74b0ebb9ca
1 changed files with 9 additions and 9 deletions
18
asa.c
18
asa.c
|
@ -14,9 +14,9 @@ int main(int argc, char ** argv) {
|
|||
else {
|
||||
in_file = fopen(argv[i], "r");
|
||||
if(in_file == NULL) {
|
||||
fprintf(stderr, "Cannot find file %s\n", argv[i]);
|
||||
error = 1;
|
||||
continue;
|
||||
fprintf(stderr, "Cannot find file %s\n", argv[i]);
|
||||
error = 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
eof_reached = 0;
|
||||
|
@ -29,12 +29,12 @@ int main(int argc, char ** argv) {
|
|||
case EOF: eof_reached = 1; continue;
|
||||
}
|
||||
for(c_temp = fgetc(in_file); c_temp != '\n'; c_temp = fgetc(in_file)) {
|
||||
if(c_temp == EOF) {
|
||||
eof_reached = 1;
|
||||
break;
|
||||
}
|
||||
else
|
||||
printf("%c", c_temp);
|
||||
if(c_temp == EOF) {
|
||||
eof_reached = 1;
|
||||
break;
|
||||
}
|
||||
else
|
||||
printf("%c", c_temp);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
|
|
Loading…
Reference in a new issue