2
![Stack Overflow](http://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png)
Take the following word-count program I have, where a word is (naively) taken as alnums between whitespace:
#include<stdio.h>
#include<ctype.h>
#include<stdbool.h>
int main(void)
{
// grab a segment of text until EOF
int current_char;
int num_words=0, num_chars=0, num_lines=0; // ign...