title: How to turn off buffering of stdout in C
body: <p>I want to turn off the buffering for the stdout for getting the exact result for the following code</p>
  
  <pre><code>while(1) {
  printf(".");
  sleep(1);
  }
  </code></pre>
  
  <p>The code printf bunch of '.' only when buffer gets filled.</p>