tech-userlevel archive

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

Re: strtonum(3) from OpenBSD?

On Tue, Jun 23, 2009 at 11:29:56AM -0400, Thor Lancelot Simon wrote:
> Returning an error *string* is so profoundly bogus I have trouble
> imagining that anyone with more than a few weeks' experience programming
> in C doesn't see why.

Indeed, but if we change it to a better API it will imediately loose
it's portability value.

Why not use ANSI C strto* functions? Yes, it's two or three lines more code,
but it's a standard.


Home | Main Index | Thread Index | Old Index