This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[OT] Re: fopen(NULL) causes segmentation fault
On Tue, Mar 28, 2000 at 07:24:14PM +0100, Mo McKinlay wrote:
> platforms do not (you may find that they set errno to EFAULT in this
> case). In any case, you should take up the issue with the glibc people if
Shouldn't fclose set errno to EBADF and then return? From the man
page:
ERRORS
EBADF The argument stream is not an open stream.
m.
--
Programmer "Ha ha." "Ha ha." "What are you laughing at?"
Loki Software "Just the horror of being alive."
http://lokigames.com/~briareos/ - Tony Millionaire