tech-userlevel archive

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

Re: strtonum(3) from OpenBSD?



On Fri, Jun 26, 2009 at 01:15:11AM -0400, James K. Lowden wrote:
> Well, I'm late to the party.  Maybe I get the last word?  

no!

> I don't understand why atoi() keeps getting reinvented when we have a
> completely standard, easily extended alternative: sscanf(3).

sscanf() is completely horrid, and, IMHO at least, should be avoided
at all costs.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index