...
| Code Block | ||
|---|---|---|
| ||
char *file_name; FILE *fptr; /* initializeInitialize file_name */ int c = getc(fptr = fopen(file_name, "r")); if (c == EOF) { /* Handle error */ } |
...
| Code Block | ||
|---|---|---|
| ||
int c; char *file_name; FILE *fptr; /* initializeInitialize file_name */ fptr = fopen(file_name, "r"); if (fptr == NULL) { /* Handle error */ } c = getc(fptr); if (c == EOF) { /* Handle error */ } |
...