MCPcopy Create free account
hub / github.com/DFHack/dfhack / to_addr

Function to_addr

library/VersionInfoFactory.cpp:104–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static uintptr_t to_addr(const char * cstr) {
105 if (sizeof(uintptr_t) == sizeof(unsigned long))
106 return strtoul(cstr, 0, 0);
107 return strtoull(cstr, 0, 0);
108}
109
110static uintptr_t get_addr(const char * cstr_value, const char * cstr_base,
111 const std::vector<DFHack::t_memrange> & ranges)

Callers 1

get_addrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected