MCPcopy Create free account
hub / github.com/cppla/ServerStatus / prefix_cmp

Function prefix_cmp

server/src/argparse.c:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16int
17prefix_cmp(const char *str, const char *prefix)
18{
19 for (;; str++, prefix++)
20 if (!*prefix)
21 return 0;
22 else if (*str != *prefix)
23 return (unsigned char)*prefix - (unsigned char)*str;
24}
25
26static void
27argparse_error(struct argparse *this_, const struct argparse_option *opt,

Callers 1

argparse_long_optFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected