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

Function need_arg

ds4_eval.c:1463–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1461 }
1462 return (uint64_t)v;
1463}
1464
1465static float parse_float_arg(const char *s, const char *opt, float min, float max) {
1466 char *end = NULL;
1467 float v = strtof(s, &end);
1468 if (s[0] == '\0' || *end != '\0' || !isfinite(v) || v < min || v > max) {
1469 fprintf(stderr, "ds4-eval: invalid value for %s: %s\n", opt, s);
1470 exit(2);
1471 }
1472 return v;

Callers 1

parse_optionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected