Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2005 20:49:39 +0000 (UTC)
From:      Thorsten Glaser <tg@66h.42h.de>
Cc:        tech@openbsd.org
Subject:   Re: strtonum(3) in FreeBSD? 
Message-ID:  <Pine.BSO.4.61L.0504122049090.4031@odem.66h.42h.de>
In-Reply-To: <200504121945.j3CJj3Fr006856@cvs.openbsd.org>
References:  <200504121945.j3CJj3Fr006856@cvs.openbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Theo de Raadt dixit:

>> >request that you use intmax_t rather than "long long" for the integers.
>> >Then the API scales cleanly when some future processor adds 128-bit ints.
>> >Since intmax_t is "long long" on all current platforms that wouldn't
>> >cause compatability problems with OpenBSD.
>> 
>> I second that. Cc'd to OpenBSD-Tech. Comments?

>If you must deal with octal and hex numbers, do it yourself.  This is
>not the typical case, and we specially avoid handling them to keep
>this simple.

You already said that, but what about using intmax_t as return type?

//mirabile



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