#include "stdlib_p.h" #include float strtof(char const * restrict ptr, char ** restrict endptr) { float f = 0; int err = strto_fp(ptr, endptr, NULL, &f, NULL); if(err != 0) errno = err; return f; }