aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:58:33 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:58:33 +0100
commitb5e668bcbd82421ac3a359b135911153d12c1236 (patch)
treee5611ddf53dec8eb25220c665fd4d0b27e44bb97 /FICS/utils.c
parent3df38dc527a3113030bdc747432b4433a3da9469 (diff)
Reformatted count_lines()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 1a4d5dc..e31ab6a 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -49,15 +49,15 @@ struct t_dirs {
PRIVATE char** t_buffer = NULL;
PRIVATE int t_buffersize = 0;
-PUBLIC int count_lines(FILE *fp)
+PUBLIC int
+count_lines(FILE *fp)
{
- int c, nl = 0;
-
- while ((c = fgetc(fp)) != EOF)
- if (c == '\n')
- ++nl;
+ int c, nl = 0;
- return nl;
+ while ((c = fgetc(fp)) != EOF)
+ if (c == '\n')
+ ++nl;
+ return nl;
}
PUBLIC int