[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: strtod(3) sets errno upon success ?
In article <20110514190723.GA11026%netbsd.org@localhost>,
David Holland <dholland-current%netbsd.org@localhost> wrote:
>On Sat, May 14, 2011 at 12:32:58AM +0200, Thomas Klausner wrote:
> > I was recently told that one shouldn't check errno if the call was
> > successful, because some called library function might have set it to
> > a value that's irrelevant, since the call you did was successful.
>That's true in general, but for strto*, because of the messy API it's
>far, far better if errno gets set only on error.
I fixed it already.
Main Index |
Thread Index |