aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:02:33 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:02:33 +0100
commit841fb3c2b5fc1472e4d7ecf67ffbfec2c7075f56 (patch)
tree636fd3354f9ea1e392e975f7e2edb2a54403a748 /FICS
parent276eac3a3585bc21c6c5170a026b48d6e6208179 (diff)
Reformatted file_exists()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c14
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 *