summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/stringto/stringtodouble.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/stringto/stringtodouble.c')
-rw-r--r--cpukit/libmisc/stringto/stringtodouble.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpukit/libmisc/stringto/stringtodouble.c b/cpukit/libmisc/stringto/stringtodouble.c
new file mode 100644
index 0000000000..080b53c60d
--- /dev/null
+++ b/cpukit/libmisc/stringto/stringtodouble.c
@@ -0,0 +1,21 @@
+/*
+ * COPYRIGHT (c) 2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+/*
+ * Instantiate an error checking wrapper for strtod (double)
+ */
+#define STRING_TO_FLOAT
+#define STRING_TO_TYPE double
+#define STRING_TO_NAME rtems_string_to_double
+#define STRING_TO_METHOD strtod
+#define STRING_TO_MAX HUGE_VAL
+#include "stringto_template.h"
+