1*35480Sbostic /* 2*35480Sbostic * Copyright (c) 1988 The Regents of the University of California. 3*35480Sbostic * All rights reserved. 4*35480Sbostic * 5*35480Sbostic * Redistribution and use in source and binary forms are permitted 6*35480Sbostic * provided that the above copyright notice and this paragraph are 7*35480Sbostic * duplicated in all such forms and that any documentation, 8*35480Sbostic * advertising materials, and other materials related to such 9*35480Sbostic * distribution and use acknowledge that the software was developed 10*35480Sbostic * by the University of California, Berkeley. The name of the 11*35480Sbostic * University may not be used to endorse or promote products derived 12*35480Sbostic * from this software without specific prior written permission. 13*35480Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*35480Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*35480Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16*35480Sbostic */ 17*35480Sbostic 18*35480Sbostic #if defined(LIBC_SCCS) && !defined(lint) 19*35480Sbostic static char sccsid[] = "@(#)atof.c 5.1 (Berkeley) 09/12/88"; 20*35480Sbostic #endif /* LIBC_SCCS and not lint */ 21*35480Sbostic 22*35480Sbostic #include <stdlib.h> 23*35480Sbostic #include <stddef.h> 24*35480Sbostic 25*35480Sbostic double 26*35480Sbostic atof(ascii) 27*35480Sbostic char *ascii; 28*35480Sbostic { 29*35480Sbostic return(strtod(ascii, (char **)NULL)); 30*35480Sbostic } 31