MCPcopy Create free account
hub / github.com/csmith-project/csmith / parse_string_arg

Function parse_string_arg

src/RandomProgramGenerator.cpp:123–128  ·  view source on GitHub ↗

---------------------------------------------------------------------------- ----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

121// ----------------------------------------------------------------------------
122// ----------------------------------------------------------------------------
123bool parse_string_arg(const char *arg, string &s)
124{
125 s.assign(arg);
126 return ((!s.empty()) &&
127 (s.compare(0, 2, "--")));
128}
129
130static bool
131parse_int_arg(char *arg, unsigned long *ret)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected