bore

Unnamed repository
Log | Files | Refs | README

commit c73ad798c221616e30db4ab5b962a669bfdbfaae
parent 2aeeeed8d577619b34b7544dc50ee15271d8ce62
Author: phoebos <ben@bvnf.space>
Date:   Wed, 22 Sep 2021 17:19:17 +0100

wc: formatting oops

Diffstat:
Mwc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wc.c b/wc.c @@ -29,7 +29,8 @@ print_count(struct count *ct, char *fname, int flags) { } -int wc(struct count *ct, FILE *f) { +int +wc(struct count *ct, FILE *f) { int c, in_word = 0; while ((c = fgetc(f)) != EOF) { if (c == '\n') @@ -101,7 +102,6 @@ main(int argc, char **argv) { return ret_val; /* print globals */ - //printf("%8ld%8ld%8ld", global.l, global.w, global.c); if (optind == argc) print_count(&global, NULL, flags); else