http://kor.i2p/books/The%20C%20Programming%20Language%20by%20K&R/chapter1.html
This makes tabs and backspaces visible in an
unambiguous way. 1.5.4 Word Counting The fourth in our series of useful programs counts lines, words, and
characters, with the loose definition that a word is any sequence of
characters that does not contain a blank, tab or newline. This is a
bare-bones version of the UNIX program wc . #include < stdio.h > #define IN 1 /* inside a word */
#define OUT 0 /* outside a word */
/* count lines, words, and characters in input */
main()
...