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

Function is_shortopt

src/core/command_line.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace crown
10{
11static bool is_shortopt(const char *arg, char shortopt)
12{
13 return shortopt != '\0'
14 && strlen32(arg) > 1
15 && arg[0] == '-'
16 && arg[1] == shortopt
17 ;
18}
19
20static bool is_longopt(const char *arg, const char *longopt)
21{

Callers 1

find_optionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected