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