wc.c code condensed