MCPcopy Create free account
hub / github.com/F-Stack/f-stack / readhexa

Function readhexa

freebsd/contrib/openzfs/module/lua/lobject.c:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100static lua_Number readhexa (const char **s, lua_Number r, int *count) {
101 for (; lisxdigit(cast_uchar(**s)); (*s)++) { /* read integer part */
102 r = (r * cast_num(16.0)) + cast_num(luaO_hexavalue(cast_uchar(**s)));
103 (*count)++;
104 }
105 return r;
106}
107
108
109/*

Callers 1

lua_strx2numberFunction · 0.85

Calls 1

luaO_hexavalueFunction · 0.85

Tested by

no test coverage detected