[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc and mint-libs PL46



> 
> >> fopen( NULL, "r" );
> >> 
> >> Results in a Bus Error.
> >
> >Dereferencing a NULL pointer is not portable, so it's not a library bug.
> >You'll get the same result on many UNIX systems.
> 
> But it could be argued the fopen library code should check for a NULL
> filename and return a NULL pointer.

Well, what does the ANSI spec say? Surely that's the arbiter in this case..

Dancer