aboutsummaryrefslogtreecommitdiff
path: root/gl/c-strtod.h
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-19 23:27:12 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-19 23:27:12 +0200
commit26fbe7f1e68bb0c96da32491efcf3696fe6c299b (patch)
treec4d95289187a64e9c7517bf73d8208026c3d2fb3 /gl/c-strtod.h
parent5f79e3e9f62ca5487d9881973149136ba1d19d3e (diff)
downloadmonitoring-plugins-26fbe7f1e68bb0c96da32491efcf3696fe6c299b.tar.gz
Sync with the latest Gnulib code (6f2d632)
Diffstat (limited to 'gl/c-strtod.h')
-rw-r--r--gl/c-strtod.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/gl/c-strtod.h b/gl/c-strtod.h
deleted file mode 100644
index c2adf1e4..00000000
--- a/gl/c-strtod.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Convert string to double, using the C locale.
-
- Copyright (C) 2003-2004, 2009-2010 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
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* Parse the initial portion of the string pointed to by NPTR as a floating-
- point number (in decimal or hexadecimal notation), like in the C locale:
- 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
- number.
- Return value:
- - 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 a number at all, return 0 (and recall
- 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);