fxlibc/src/libc/stdlib/atof.c
Lephenixnoir f5cca84ae8
stdlib: add and test strtod, strtof and atof (DONE)
This uses a generic function strto_fp similar to strto_int that is used
for strtol and its derivatives.
2021-05-21 23:56:35 +02:00

7 lines
89 B
C

#include <stdlib.h>
double atof(char const *ptr)
{
return (double)strtod(ptr, NULL);
}