Lephenixnoir
f5cca84ae8
This uses a generic function strto_fp similar to strto_int that is used for strtol and its derivatives.
7 lines
89 B
C
7 lines
89 B
C
#include <stdlib.h>
|
|
|
|
double atof(char const *ptr)
|
|
{
|
|
return (double)strtod(ptr, NULL);
|
|
}
|