title: Read file from stdin C with scanf
body: <p>I can read file contents from <code>stdin</code> with <code>scanf("%s", &amp;input)</code>. </p>
  
  <p>How much space should I be allocating for the <code>input</code> string if I do not know how long the file will be?</p>