MCPcopy Create free account
hub / github.com/crownengine/crown / from_hex

Function from_hex

src/core/strings/string.cpp:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int from_hex(s64 &val, const char *hex)
80{
81 errno = 0;
82 val = strtol(hex, NULL, 16);
83 return !(errno != ERANGE && errno != EINVAL);
84}
85
86} // namespace crown

Callers 2

parse_statesMethod · 0.85
parse_renderer_settingsFunction · 0.85

Calls 1

strtolFunction · 0.85

Tested by

no test coverage detected