X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fc-strtod.h;h=2460668b4373ec5dc4e0af6758f93e87ab2c5822;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=4458d676744cde86377bd27a074b15257d3190ef;hpb=151fa2d3905c0d3427303d65d424f7312e95eb30;p=gnulib.git diff --git a/lib/c-strtod.h b/lib/c-strtod.h index 4458d6767..2460668b4 100644 --- a/lib/c-strtod.h +++ b/lib/c-strtod.h @@ -1,6 +1,6 @@ /* Convert string to double, using the C locale. - Copyright (C) 2003-2004, 2009 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ accepting only the ASCII digits '0'..'9', and only '.' as decimal point character. If ENDPTR is not NULL, set *ENDPTR to point to the first byte beyond the - parsed number or to NPTR if the string does not start with a parseable + parsed number or to NPTR if the string does not start with a parsable number. Return value: - If successful, return the value as a double or 'long double', @@ -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);