title: Get size of input in console
body: <p>How would you get the size input string to console or size of valid characters in buffer?</p>
  
  <pre><code>char buffer[100];
  cin &gt;&gt; buffer;
  </code></pre>
  
  <p>I'm looking to put the '\0' where the input ends.</p>