MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / isValRequired

Method isValRequired

erpcgen/src/options.cpp:450–450  ·  view source on GitHub ↗

Does this option require an argument?

Source from the content-addressed store, hash-verified

448 const char *LongOpt(void) const { return (spec[1] && spec[2] && (!isspace(spec[2]))) ? (spec + 2) : NULLSTR; }
449 // Does this option require an argument?
450 int isValRequired(void) const { return ((spec[1] == ':') || (spec[1] == '+')); }
451 // Does this option take an optional argument?
452 int isValOptional(void) const { return ((spec[1] == '?') || (spec[1] == '*')); }
453 // Does this option take no arguments?

Callers 2

parse_optMethod · 0.80
parse_longoptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected