Re: Strange interval arithmetic
- From: Michael Fuhr <mike(at)fuhr(dot)org>
- To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
- Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
- Subject: Re: Strange interval arithmetic
- Date: Wed, 30 Nov 2005 15:57:42 -0700
- Message-id: <20051130225742(dot)GA27631(at)winnie(dot)fuhr(dot)org>
On Wed, Nov 30, 2005 at 05:49:53PM -0500, Tom Lane wrote:
> The SUS saith
> http://www.opengroup.org/onlinepubs/007908799/xsh/strtol.html
>
> The strtol() function will not change the setting of errno if
> successful.
>
> Perhaps more to the point, we've been doing it that way (errno test
> only) for many years without complaints. Adding a test on the return
> value is venturing into less charted waters.
Good, I'll stick with just the ERANGE check then.
--
Michael Fuhr
Home |
Main Index |
Thread Index