title: C, getc/fgetc - terminal null
body: <p>I'm writing program that counts words in C, I know I can do this simply with fscanf. But I'm using getc. </p>
  
  <p>I have file like this:</p>
  
  <blockquote>
    <p>One two three four five.</p>
  </blockquote>
  
  <p>I'm reading chars in while loop and breaking point is when I reach terminal null. </p>
  
  <p>Will <code>c = fgetc(input);</code> or <code>c = getc(input);</code> set <code>c  = '\0';</code> after One_ and after two_ etc.?</p>