[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-strtod: handling of out-of-memory
From: |
Jim Meyering |
Subject: |
Re: c-strtod: handling of out-of-memory |
Date: |
Sat, 24 Jan 2009 09:45:03 +0100 |
Bruno Haible <address@hidden> wrote:
> 2009-01-23 Bruno Haible <address@hidden>
>
> * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
Hi Bruno,
> --- lib/c-strtod.h.orig 2009-01-24 00:08:16.000000000 +0100
> +++ lib/c-strtod.h 2009-01-24 00:07:51.000000000 +0100
...
> + If successful, return the value as a double or 'long double',
> respectively,
> + and don't modify errno. In case of overflow, return ±HUGE_VAL or
> + ±HUGE_VALL, respectively, and set errno to ERANGE. In case of underflow,
> + return a value very near to 0 and set errno to ERANGE. If the string
> + does not start with the a number at all, return 0 (and recall that if
Thanks for writing that. One nit: s/the a/a/
- c-strtod: handling of out-of-memory, Bruno Haible, 2009/01/22
- Re: c-strtod: handling of out-of-memory, Jim Meyering, 2009/01/23
- Re: c-strtod: handling of out-of-memory, Bruno Haible, 2009/01/23
- Re: c-strtod: handling of out-of-memory, Eric Blake, 2009/01/24
- Re: strtod error handling, Bruno Haible, 2009/01/24
- Re: strtod error handling, Eric Blake, 2009/01/24
- Re: strtod error handling, Bruno Haible, 2009/01/24