Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2005 20:08:19 +0000 (UTC)
From:      Thorsten Glaser <tg@66h.42h.de>
To:        freebsd-current@freebsd.org
Subject:   Re: strtonum(3) in FreeBSD?
Message-ID:  <Pine.BSO.4.61L.0504122006560.4031@odem.66h.42h.de>
In-Reply-To: <1113336183.27362.37.camel@localhost.localdomain>
References:  <1113336183.27362.37.camel@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.61L.0504122006560.4031>