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

Function parse_backend

ds4_agent.c:476–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474 }
475 return (int)v;
476}
477
478static bool parse_power_percent(const char *arg, int *out) {
479 char *end = NULL;
480 long v = strtol(arg, &end, 10);
481 if (!arg[0] || *end != '\0' || v < 1 || v > 100) return false;
482 *out = (int)v;
483 return true;
484}
485

Callers 1

parse_optionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected