atof.c revision 125668
15897Sjmz/*
25897Sjmz * Copyright (c) 1988, 1993
35897Sjmz *	The Regents of the University of California.  All rights reserved.
45897Sjmz *
55897Sjmz * Redistribution and use in source and binary forms, with or without
65897Sjmz * modification, are permitted provided that the following conditions
75897Sjmz * are met:
85897Sjmz * 1. Redistributions of source code must retain the above copyright
95897Sjmz *    notice, this list of conditions and the following disclaimer.
105897Sjmz * 2. Redistributions in binary form must reproduce the above copyright
115897Sjmz *    notice, this list of conditions and the following disclaimer in the
125897Sjmz *    documentation and/or other materials provided with the distribution.
135897Sjmz * 3. All advertising materials mentioning features or use of this software
145897Sjmz *    must display the following acknowledgement:
155897Sjmz *	This product includes software developed by the University of
165897Sjmz *	California, Berkeley and its contributors.
175897Sjmz * 4. Neither the name of the University nor the names of its contributors
185897Sjmz *    may be used to endorse or promote products derived from this software
195897Sjmz *    without specific prior written permission.
205897Sjmz *
215897Sjmz * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
225897Sjmz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
235897Sjmz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
245897Sjmz * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
255897Sjmz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
265897Sjmz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
275897Sjmz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
285897Sjmz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
295897Sjmz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
305897Sjmz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
315897Sjmz * SUCH DAMAGE.
325897Sjmz */
335897Sjmz
346734Sbde#if defined(LIBC_SCCS) && !defined(lint)
357430Sbdestatic char sccsid[] = "@(#)atof.c	8.1 (Berkeley) 6/4/93";
367430Sbde#endif /* LIBC_SCCS and not lint */
376734Sbde#include <sys/cdefs.h>
386734Sbde__FBSDID("$FreeBSD: head/lib/libc/stdlib/atof.c 125668 2004-02-10 20:42:33Z cperciva $");
396734Sbde
405897Sjmz#include <stdlib.h>
416734Sbde
425897Sjmzdouble
435897Sjmzatof(ascii)
448876Srgrimes	const char *ascii;
455897Sjmz{
465897Sjmz	return strtod(ascii, (char **)NULL);
475897Sjmz}
485897Sjmz