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

Function dist_cli_parse_port

ds4_distributed.c:8092–8106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8090 if (parsed.end < parsed.start) {
8091 if (errlen) snprintf(err, errlen, "layer range end precedes start in %s", s);
8092 return false;
8093 }
8094 }
8095
8096 parsed.set = true;
8097 *out = parsed;
8098 return true;
8099}
8100
8101static const char *dist_cli_need_arg(
8102 int *index,
8103 int argc,
8104 char **argv,
8105 const char *arg,
8106 char *err,
8107 size_t errlen) {
8108 if (!index || !argv || *index + 1 >= argc) {
8109 if (errlen) snprintf(err, errlen, "%s requires an argument", arg);

Callers 1

ds4_dist_parse_cli_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected