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

Function parse_int_arg

src/RandomProgramGenerator.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static bool
131parse_int_arg(char *arg, unsigned long *ret)
132{
133 int res;
134 res = sscanf (arg, "%lu", ret);
135
136 if (res == 0) {
137 cout << "expected integer at arg position " << endl;
138 return false;
139 }
140 return true;
141}
142
143static void print_help()
144{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected