tech-userlevel archive

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

Re: strtonum(3) from OpenBSD?

On Wed, Jun 24, 2009 at 09:00:53PM +0200, Marc Balmer wrote:
> >I'd have phrased it differently, but I agree with Thor -- this is a  
> >bad
> >API.  Nor have I seen sufficient evidence that it's widely used in
> >software we might want to import.
> I am eager to learn why it is bad.

I think Thor explained it quite well. And yes, I did look at the man page.
There isn't even proper matching between the possible errno and the
possible errstr values in the man page ...
We could change it so that errstr points to strerror(errno) but then
there isn't much point in returning errstr at all.

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index