MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / getInt

Function getInt

main.cpp:71–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69// ------------------------------------------------------------------------------------------
70
71int getInt(string name,char *v) {
72
73 int r;
74
75 try {
76
77 r = std::stoi(string(v));
78
79 } catch(std::invalid_argument&) {
80
81 printf("Invalid %s argument, number expected\n",name.c_str());
82 exit(-1);
83
84 }
85
86 return r;
87
88}
89
90// ------------------------------------------------------------------------------------------
91

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected