diff options
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 542638b..441ec65 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -840,15 +840,15 @@ PUBLIC int available_space(void) #endif } -PUBLIC int file_exists(char *fname) +PUBLIC int +file_exists(char *fname) { - FILE *fp; + FILE *fp; - fp = fopen(fname, "r"); - if (!fp) - return 0; - fclose(fp); - return 1; + if ((fp = fopen(fname, "r")) == NULL) + return 0; + fclose(fp); + return 1; } PUBLIC char * |