xref: /haiku/src/system/libroot/posix/glibc/stdlib/strtold.c (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
1 /* Copyright (C) 1999 Free Software Foundation, Inc.
2 
3    The GNU C Library is free software; you can redistribute it and/or
4    modify it under the terms of the GNU Library General Public License as
5    published by the Free Software Foundation; either version 2 of the
6    License, or (at your option) any later version.
7 
8    The GNU C Library is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11    Library General Public License for more details.
12 
13    You should have received a copy of the GNU Library General Public
14    License along with the GNU C Library; see the file COPYING.LIB.  If not,
15    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16    Boston, MA 02111-1307, USA.  */
17 
18 #include <math.h>
19 #include <stdlib.h>
20 
21 /* There is no `long double' type, use the `double' implementations.  */
22 long double
23 __strtold_internal (const char *nptr, char **endptr, int group)
24 {
25   return __strtod_internal (nptr, endptr, group);
26 }
27 
28 long double
29 strtold (const char *nptr, char **endptr)
30 {
31   return __strtod_internal (nptr, endptr, 0);
32 }
33