title: C detect empty line
body: <p>I have a text file that i need to read and store in struct. It looks something like this:</p>
  
  <pre><code>Firstname Lastname
  123
  345
  678
  
  Firstname2 Lastname2
  432
  454
  </code></pre>
  
  <p>The amount of data that comes after the number part is unknown there may be one line or two or so on. There is always a space when a new person and its data starts. How can I detect when there is an empty line so I can move to the next location in my struct array where I store the data.
  When using fgets()</p>
  
  <pre><code>buffer[0] == '\n'
  </code></pre>
  
  <p>worked on windows, but it doesnt work on linux.</p>