fgets returns (on success) the value of its first arg (so, whatever type "msgbuf" is/was, that's the type of thing that fgets returns). Yes, I know this language is informal; don't bother nitpicking it.
Anyway, using: while (fgets(...))
is perfectly fine. No need to compare to NULL.
Anyway, using: while (fgets(...))
is perfectly fine. No need to compare to NULL.
Statistics: Posted by BigRedMailbox — Mon Feb 12, 2024 1:36 pm