commit b5e668bcbd82421ac3a359b135911153d12c1236 from: Markus Uhlin date: Mon Dec 25 17:58:33 2023 UTC Reformatted count_lines() commit - 3df38dc527a3113030bdc747432b4433a3da9469 commit + b5e668bcbd82421ac3a359b135911153d12c1236 blob - 1a4d5dcc6c505a61de58bcbe244a3ffe7ef5c748 blob + e31ab6a3a5580032b226d131725e7a080fc24cb9 --- FICS/utils.c +++ 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; + int c, nl = 0; - while ((c = fgetc(fp)) != EOF) - if (c == '\n') - ++nl; - - return nl; + while ((c = fgetc(fp)) != EOF) + if (c == '\n') + ++nl; + return nl; } PUBLIC int