#include "c.h"
#include <float.h>
#include <math.h>
Go to the source code of this file.
|
float | strtof (const char *nptr, char **endptr) |
|
◆ strtof()
float strtof |
( |
const char * |
nptr, |
|
|
char ** |
endptr |
|
) |
| |
Definition at line 28 of file strtof.c.
30 int caller_errno = errno;
35 dresult = strtod(nptr, endptr);
36 fresult = (float) dresult;
43 if (dresult != 0 && fresult == 0)
44 caller_errno = ERANGE;
45 if (!isinf(dresult) && isinf(fresult))
46 caller_errno = ERANGE;
Referenced by float4in().