diff options
author | Robert de Bath <rdebath@poboxes.com> | 2005-01-23 15:31:04 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:48:50 +0200 |
commit | 62c27c1c5cb6257b13dfc9be0394e0d2e86f2735 (patch) | |
tree | f702b7e5f80293367e1b6f9812bd45e80378be26 /libc/misc/atof.c | |
parent | 6cb598cc5f1c8ae6d14381c2776338584368257e (diff) | |
download | dev86-62c27c1c5cb6257b13dfc9be0394e0d2e86f2735.tar.gz |
Import Dev86src-0.16.17.tar.gzv0.16.17
Diffstat (limited to 'libc/misc/atof.c')
-rw-r--r-- | libc/misc/atof.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/misc/atof.c b/libc/misc/atof.c new file mode 100644 index 0000000..aeadaa5 --- /dev/null +++ b/libc/misc/atof.c @@ -0,0 +1,16 @@ +/* Copyright (C) Robert de Bath <robert@debath.co.uk> + * This file is part of the Linux-8086 C library and is distributed + * under the GNU Library General Public License. + */ + +double +#ifdef __STDC__ +atof(const char *p) +#else +atof(p) +char *p; +#endif +{ + return strtod(p, (char**)0); +} + |