]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/gdtoa/_strtold.c
StdLib: Fix printf issues with floating point and wide character strings. Also resol...
[mirror_edk2.git] / StdLib / LibC / gdtoa / _strtold.c
CommitLineData
2aa62f2b 1/** @file\r
2 *\r
3 * Copyright (c) 1996 Christos Zoulas. All rights reserved.\r
4 *\r
5 * Redistribution and use in source and binary forms, with or without\r
6 * modification, are permitted provided that the following conditions\r
7 * are met:\r
8 * 1. Redistributions of source code must retain the above copyright\r
9 * notice, this list of conditions and the following disclaimer.\r
10 * 2. Redistributions in binary form must reproduce the above copyright\r
11 * notice, this list of conditions and the following disclaimer in the\r
12 * documentation and/or other materials provided with the distribution.\r
13 * 3. All advertising materials mentioning features or use of this software\r
14 * must display the following acknowledgement:\r
15 * This product includes software developed by Christos Zoulas.\r
16 * 4. The name of the author may not be used to endorse or promote products\r
17 * derived from this software without specific prior written permission.\r
18 *\r
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
29\r
30 NetBSD: _strtold.c,v 1.1 2006/03/15 17:35:18 kleink Exp\r
31**/\r
32#include <LibConfig.h>\r
33#include <sys/EfiCdefs.h>\r
34\r
35#if defined(__indr_reference)\r
36 __indr_reference(_strtold, strtold)\r
37#else\r
38\r
39#include <stdlib.h>\r
40long double _strtold(const char * __restrict, char ** __restrict);\r
41\r
42long double\r
43strtold(const char *nptr, char **endptr)\r
44{\r
45 return _strtold(nptr, endptr);\r
46}\r
47#endif\r