MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / convertH

Function convertH

include/init/eval.h:37–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static u64 convertH(const char *val) // convert hex string to unsigned integer 64bit
38{
39 if(!val || (*val == 0)) return 0;
40
41 char *end;
42 return _Stoll(val, &end, 16);
43/*
44 u64 ret = 0; u8 n = 0, c;
45
46 if(islike(val, "0x")) n = 2;
47
48 for(u8 i = n; i < 16 + n; i++)
49 {
50 if(val[i]==' ') {n++; continue;}
51
52 c = h2b(val[i]);
53 if(c > 0xF)
54 return ret;
55
56 ret = (ret << 4) | c;
57 }
58
59 return ret;
60*/
61}
62
63#ifndef LITE_EDITION
64static bool isHEX(const char *value)

Callers 12

setup_parse_settingsFunction · 0.85
valFunction · 0.85
FOR_EACH_SFO_FIELDFunction · 0.85
Fix_ClockFunction · 0.85
spoof_idps_psidFunction · 0.85
rec_startFunction · 0.85
ps3mapi_getmemFunction · 0.85
ps3mapi_setmemFunction · 0.85
ps3mapi_setidpsFunction · 0.85
ps3mapi_mem_dumpFunction · 0.85
handleclient_ps3mapiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected