Re: strtonum(3) in FreeBSD?

From: Theo de Raadt <deraadt_at_cvs.openbsd.org>
Date: Tue, 12 Apr 2005 15:14:07 -0600
> >> >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?

No.
Received on Tue Apr 12 2005 - 19:11:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:32 UTC