summaryrefslogtreecommitdiff
path: root/StdLib/LibC/gdtoa/Ipf/strtold.c
blob: 0cddae36f45dfdfd7aa6ac295c6e744678935217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** @file
    Wrapper for strtold so that it just calls strtod().  This is because the IPF implementation doesn't have
    long double.  (actually MS VC++ makes long double a distinct type that is identical to double.)  VC++
    also doesn't support the {strong, weak}_alias feature so we actually have to have an object.

**/
#include  <LibConfig.h>
#include  <sys/EfiCdefs.h>

#include  "namespace.h"
#include  "../gdtoaimp.h"
#include  "../gdtoa.h"

long double
strtold(const char * __restrict nptr, char ** __restrict endptr)
{
  return (long double)strtod( nptr, endptr);
}