MCPcopy Create free account
hub / github.com/SIPp/sipp / xp_get_long

Function xp_get_long

src/scenario.cpp:300–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static long xp_get_long(const char *name, const char *what)
301{
302 const char *ptr;
303 char *helptext;
304 long val;
305
306 if (!(ptr = xp_get_value(name))) {
307 ERROR("%s is missing the required '%s' parameter.", what, name);
308 }
309 helptext = (char *)malloc(100 + strlen(name) + strlen(what));
310 sprintf(helptext, "%s '%s' parameter", what, name);
311 val = get_long(ptr, helptext);
312 free(helptext);
313
314 return val;
315}
316
317static long xp_get_long(const char *name, const char *what, long defval)
318{

Callers 1

scenarioMethod · 0.85

Calls 3

xp_get_valueFunction · 0.85
ERRORFunction · 0.85
get_longFunction · 0.85

Tested by

no test coverage detected