if ( fgets( line, sizeof(line), stdin ) == (char*) 0 )...
I don't understand what this line does,anyone knows?
That's a rather odd way of writing a test for the return of a null pointer which indicates an error in fgets()
.
I'd write it like this:
if (!fgets(line, sizeof(line), stdin))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With