[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..
>
Certainly. But what is it supposed to do? Doesn't make sense to me...
--
---------------------------------------------------
Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
eMail: reschke@math.uni-muenster.de jr@ms.maus.de
___________________________________________________