This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
if (fwrite (str, 1, len, fp) != len) { /* Ignore. */ }
Yes. Although it would be simpler to just remove the whole if (...) statment block and just call fwrite without testing its return value.
the reason i didn't do that is it causes warnings since fwrite() is marked as "warn on unused result"
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |