xref: /haiku/src/system/libroot/posix/stdlib/atof.c (revision 2ae568931fcac7deb9f1e6ff4e47213fbfe4029b)
1 /*
2  *  Copyright (c) 2002, OpenBeOS Project.
3  *  All rights reserved.
4  *  Distributed under the terms of the OpenBeOS license.
5  *
6  *
7  *  atof.c:
8  *  implements the standard C library function atof()
9  *  (merely a wrapper for strtod(), actually)
10  *
11  *
12  *  Author(s):
13  *  Daniel Reinhold (danielre@users.sf.net)
14  *
15  */
16 
17 #include <stdlib.h>
18 
19 
20 double
21 atof(const char *num)
22 {
23 	return strtod(num, NULL);
24 }
25 
26 
27