MCPcopy Create free account
hub / github.com/crownengine/crown / is_longopt

Function is_longopt

src/core/command_line.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static bool is_longopt(const char *arg, const char *longopt)
21{
22 return longopt != NULL
23 && strlen32(arg) > 2
24 && arg[0] == '-'
25 && arg[1] == '-'
26 && strcmp(&arg[2], longopt) == 0
27 ;
28}
29
30static bool is_end_options_marker(const char *arg)
31{

Callers 1

find_optionFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected