text statistics (stdin): edge case
text statistics (stdin): edge case: a task in smol-software-harbor (Harbor dataset). The wc program ( wc.c ) counts one word per whitespace character, so input with several spaces, tabs or blank lines between words gives far too many words. A word is a maximal run of non-whitespace characters. Fix…
The task
The `wc` program (`wc.c`) counts one word per whitespace character, so input with several spaces, tabs or blank lines between words gives far too many words. A word is a maximal run of non-whitespace characters. Fix the counting; `make -B test` runs a smoke check.
Part of efederici/smol-software-harbor.