Mail Archives: djgpp-workers/2003/02/26/14:01:10
Martin Stromberg wrote:
> Shouldn't you check that that close() is successful? In case of
> buffering or whatever you might not see any error until you close the
> file. (There might be other close()s you need to check as well.)
Yes, I've added three checks to the test program: two for close and one for
_dos_close. I also fixed the return-value check for _dos_open, which was
slightly wrong (according to the info page) - I was checking for < 0 rather
than != 0.
These changes did not affect the test result under Windows '98 SE or the DOS
that comes with Windows '98 SE.
Thanks, bye, Rich =]
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -