changeset 11078:6113cefa040d

Adjust specification.
author Bruno Haible <bruno@clisp.org>
date Sat, 24 Jan 2009 15:01:21 +0100
parents ddb65537c2d0
children da1838b992ec
files ChangeLog lib/c-strtod.h
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+	* lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
+	Reported by Eric Blake.
+
 2009-01-24  Bruno Haible  <bruno@clisp.org>
 
 	* lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
--- a/lib/c-strtod.h
+++ b/lib/c-strtod.h
@@ -30,8 +30,8 @@
    - In case of underflow, return a value very near to 0 and set errno to
      ERANGE.
    - If the string does not start with a number at all, return 0 (and recall
-     that if ENDPTR != NULL, *ENDPTR is set to NPTR).
-   - In case of other error, return 0 and set errno, for example to EINVAL
-     or ENOMEM.  */
+     that if ENDPTR != NULL, *ENDPTR is set to NPTR), and maybe set errno to
+     EINVAL.
+   - In case of other error, return 0 and set errno, for example to ENOMEM.  */
 extern double      c_strtod  (char const *nptr, char **endptr);
 extern long double c_strtold (char const *nptr, char **endptr);