MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / AtoiAndCheck

Function AtoiAndCheck

include/LightGBM/utils/common.h:272–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272inline static bool AtoiAndCheck(const char* p, int* out) {
273 const char* after = Atoi(p, out);
274 if (*after != '\0') {
275 return false;
276 }
277 return true;
278}
279
280inline static bool AtofAndCheck(const char* p, double* out) {
281 const char* after = Atof(p, out);

Callers 2

SetHeaderMethod · 0.50
GetIntMethod · 0.50

Calls 1

AtoiFunction · 0.70

Tested by

no test coverage detected