MCPcopy Create free account
hub / github.com/coin-or/CppAD / arg2double

Function arg2double

example/multi_thread/thread_test.cpp:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 exit(1);
260 }
261 double arg2double(
262 const char* arg ,
263 double limit ,
264 const char* error_msg )
265 { double d = std::atof(arg);
266 if( d >= limit )
267 return d;
268 std::cerr << "value = " << d << std::endl;
269 std::cerr << error_msg << std::endl;
270 exit(1);
271 }
272}
273
274int main(int argc, char *argv[])

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected