title: Check if String Contains New Line character
body: <p>I'm using <code>fgets()</code> with a buffer for a character array as I'm processing a file line by line. Will the buffer array contain the character, <code>'\n'</code> in its last position if it encounters a new line?</p>
  
  <p>Does <code>fgets()</code> store <code>'\n'</code> in the buffer when a file starts a new line? If it doesn't, how can I check for them?</p>