MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_strtod

Function my_strtod

strings/dtoa.c:461–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459*/
460
461double my_strtod(const char *str, char **end, int *error)
462{
463 char buf[DTOA_BUFF_SIZE];
464 double res;
465 DBUG_ASSERT(end != NULL && ((str != NULL && *end != NULL) ||
466 (str == NULL && *end == NULL)) &&
467 error != NULL);
468
469 res= my_strtod_int(str, end, error, buf, sizeof(buf));
470 return (*error == 0) ? res : (res < 0 ? -DBL_MAX : DBL_MAX);
471}
472
473
474double my_atof(const char *nptr)

Callers 5

my_atofFunction · 0.85
my_strntod_mb2_or_mb4Function · 0.85
decimal2doubleFunction · 0.85
my_strntod_8bitFunction · 0.85
getopt_doubleFunction · 0.85

Calls 1

my_strtod_intFunction · 0.85

Tested by

no test coverage detected