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

Function get_param

include/init/eval.h:157–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157static u16 get_param(const char *name, char *value, const char *url, u16 max_size)
158{
159 if(!name || !value || !url || !max_size) return 0;
160
161 u8 name_len = strlen(name);
162
163 if(name_len)
164 {
165 char *pos = strstr(url, name);
166 if(pos)
167 {
168 if(name[name_len - 1] != '=') name_len++;
169 return get_value(value, pos + name_len, max_size);
170 }
171 }
172
173 *value = '\0';
174 return 0;
175}
176
177static s64 get_valuen64(const char *param, const char *label)
178{

Callers 15

setup_parse_settingsFunction · 0.85
rec_startFunction · 0.85
download_fileFunction · 0.85
remap_unmap.hFile · 0.85
pad_combo_play.hFile · 0.85
ps3mapi_notifyFunction · 0.85
ps3mapi_mappathFunction · 0.85
ps3mapi_getmemFunction · 0.85
ps3mapi_setmemFunction · 0.85
ps3mapi_payloadFunction · 0.85
ps3mapi_setidpsFunction · 0.85

Calls 3

get_valueFunction · 0.70
strlenFunction · 0.50
strstrFunction · 0.50

Tested by

no test coverage detected