title: What is the fastest way to count lines and words in a text file in ANSI C?
body: <p>What is the fastest way to count lines and words in a text file in pure ANSI C?</p>
  
  <p>A word is terminated by a space or period. Line is terminated by <code>'\n'</code>.</p>
  
  <p><a href="https://stackoverflow.com/questions/843154/fastest-way-to-find-the-number-of-lines-in-a-text-c">This seems to be in C++.</a></p>