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

Re: gcc and mint-libs PL46



Andreas wrote:
>Your program has to check for it anyway, so what's the point?  NULL is
>*never* a valid pointer, and if you pass it to a function that expects
>a valid pointer all bets are off.

But fopen has a clearly defined error return condition (returning NULL)
which is all that needs to be checked by the calling program.

Chris