MCPcopy Create free account
hub / github.com/antirez/ds4 / parse_float_arg

Function parse_float_arg

ds4_eval.c:1453–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1451 }
1452 return (int)v;
1453}
1454
1455static uint64_t parse_u64_arg(const char *s, const char *opt) {
1456 char *end = NULL;
1457 unsigned long long v = strtoull(s, &end, 10);
1458 if (s[0] == '\0' || *end != '\0' || v == 0) {
1459 fprintf(stderr, "ds4-eval: invalid value for %s: %s\n", opt, s);
1460 exit(2);
1461 }
1462 return (uint64_t)v;
1463}
1464

Callers 1

parse_optionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected