MCPcopy Create free account
hub / github.com/git/git / get_d

Function get_d

t/helper/test-json-writer.c:424–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424static void get_d(struct line *line, double *s_in)
425{
426 char *s;
427 char *endptr;
428
429 get_s(line, &s);
430
431 errno = 0;
432 *s_in = strtod(s, &endptr);
433 if (*endptr || errno == ERANGE)
434 die("line[%d]: invalid float value", line->nr);
435}
436
437static int pretty;
438

Callers 1

scriptedFunction · 0.85

Calls 2

get_sFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected