title: detect EOL in C using fgets
body: <p>I'm attempting to read a single line from a file using the following...</p>
  
  <pre><code> while(fgets(c,BUF,f) != EOL){
     puts(c);
   }
  </code></pre>
  
  <p>Where EOL = <code>#define EOL '\n'</code> however, I get the warning... <code>comparison between pointer and integer</code></p>
  
  <p>What is the correct way to achieve what I'm trying?</p>