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

Function val

include/init/eval.h:109–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static s64 val(const char *c)
110{
111 if(!c) return 0;
112
113 if(islike(c, "0x"))
114 {
115 return convertH(c);
116 }
117
118 char *end;
119 return _Stoll(c, &end, 10);
120/*
121 s64 result = 0;
122 s64 sign = 1;
123
124 if(c && *c == '-')
125 {
126 sign = -1;
127 c++;
128 }
129
130 while(*c)
131 {
132 if(!ISDIGIT(*c)) break;
133
134 result *= 10;
135 result += (*c & 0x0F);
136
137 c++;
138 }
139 return(result * sign);
140*/
141}
142
143static u16 get_value(char *value, const char *url, u16 max_size)
144{

Callers 15

get_firmware_versionFunction · 0.70
get_valuen64Function · 0.70
parse_tagsFunction · 0.70
handleclient_ftpFunction · 0.50
mount_threadFunction · 0.50
parse_lbaFunction · 0.50
reset_usb_portsFunction · 0.50
usb_keep_awakeFunction · 0.50
Fix_ClockFunction · 0.50
wait_for_xml_downloadFunction · 0.50
get_bdvd_infoFunction · 0.50
parse_syscallFunction · 0.50

Calls 2

convertHFunction · 0.85
islikeFunction · 0.70

Tested by

no test coverage detected