Thanks, @msva. Most changes look good, and I am glad to learn about the "we" argument to fopen(). However, I disagree with the relocation of the fclose()here. fclose() should not be called with a null pointer in the event of an error. Did lint suggest that change?
Thanks, @msva. Most changes look good, and I am glad to learn about the "we" argument to
fopen()
. However, I disagree with the relocation of thefclose()
here.fclose()
should not be called with a null pointer in the event of an error. Did lint suggest that change?