summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d386f33)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
FILE* fp;
printf("Enter the name of the file you wish to see\n");
FILE* fp;
printf("Enter the name of the file you wish to see\n");
- int prt = scanf("%s", fname);
- /* if (prt != 0) {
- perror("Error entering the file name.\n");
- exit(EXIT_FAILURE);
- } */
fp = fopen(fname, "r"); /* read mode */
if (fp == NULL) {
fp = fopen(fname, "r"); /* read mode */
if (fp == NULL) {