From 21d3063840c3852049cde1edaf8854c7512be3d2 Mon Sep 17 00:00:00 2001 From: Daniel Reinhold Date: Sat, 26 Oct 2002 21:23:22 +0000 Subject: [PATCH] initial checkin git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1702 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/stdlib/atof.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/kernel/libroot/posix/stdlib/atof.c 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); +} + +