diff --git a/src/kernel/libroot/posix/stdlib/atof.c b/src/kernel/libroot/posix/stdlib/atof.c new file mode 100644 index 0000000000..1b5b62b15a --- /dev/null +++ b/src/kernel/libroot/posix/stdlib/atof.c @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2002, OpenBeOS Project. + * All rights reserved. + * Distributed under the terms of the OpenBeOS license. + * + * + * atof.c: + * implements the standard C library function atof() + * (merely a wrapper for strtod(), actually) + * + * + * Author(s): + * Daniel Reinhold (danielre@users.sf.net) + * + */ + +#include + + +double +atof(const char *num) +{ + return strtod(num, NULL); +} + +