Lephenixnoir
3a9a60db78
* Name the private function __strto_{int,fp} (with leading double underscores) to avoid name conflicts * Fix comments of the wrong style * Fix missing leading double underscores in stdlib_p.h
11 lines
215 B
C
11 lines
215 B
C
#include "stdlib_p.h"
|
|
#include <errno.h>
|
|
|
|
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;
|
|
}
|