Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: strtod(3) sets errno upon success ?
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.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index