title: Is it possible to read in a string of unknown size in C, without having to put it in a pre-allocated fixed length buffer?
body: <p>Is it possible to read in a string in C, without allocating an array of fixed size ahead of time?</p>
  
  <p>Everytime I declare a char array of some fixed size, I feel like I'm doing it wrong.  I'm always taking a guess at what I think would be the maximum for my usecase, but this isn't always easy.</p>
  
  <p>Also, I don't like the idea of having a smaller string sitting in a larger container.  It doesn't feel right.</p>
  
  <p>Am I missing something?  Is there some other way I should be doing this?</p>