fgets cannot read newline character
<pre><code>char c[500];
fgets(c, 500, fp);

if (c == "\n") {
    customer.checkoutTime = 0;
    customer.payment = 0;
}
</code></pre>

<p>I want to store two zero in these two var if fgets read a blank line. But it fail, never execute the if-block code . How should fgets read a blank line?</p>