strtonum(3) in FreeBSD?

Thorsten Glaser tg at 66h.42h.de
Tue Apr 12 13:08:26 PDT 2005


Dixitur:

>Based on the man page, I see the following deficiencies:
>1) No support for bases other than 10

Not having base 16 (sedecimal) support really is why I am
still using strtol(l) in my code...

>2) No provision to return the end of the converted string
>3) No simple way to distinguish errors from a valid zero.

The OpenBSD people said (when I proposed to change #1) that
they want an uncomplicated interface, and I think #3 is not
necessary, and I can live without #2.

Just my 0.02 EUR

//mirabile


More information about the freebsd-current mailing list