MCPcopy Create free account
hub / github.com/Kitware/CMake / cmStrToLong

Function cmStrToLong

Source/cmStringAlgorithms.cxx:184–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool cmStrToLong(char const* str, long* value)
185{
186 errno = 0;
187 char* endp;
188 *value = strtol(str, &endp, 10);
189 return (*endp == '\0') && (endp != str) && (errno == 0);
190}
191
192bool cmStrToLong(std::string const& str, long* value)
193{

Callers 13

testStringAlgorithmsFunction · 0.85
GetIndexArgFunction · 0.85
stringToIdFunction · 0.85
RunMethod · 0.85
entry_to_removeMethod · 0.85
GetOSReleaseVariablesFunction · 0.85
cmCMakeLanguageCommandFunction · 0.85
ExecuteCMakeCommandMethod · 0.85
HandleLockCommandFunction · 0.85
SetTestsPropertiesMethod · 0.85
DebGeneratorMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by 3

testStringAlgorithmsFunction · 0.68
RunMethod · 0.68
SetTestsPropertiesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…