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

Function xp_get_string

src/scenario.cpp:265–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263#endif
264
265static char* xp_get_string(const char *name, const char *what)
266{
267 const char *ptr;
268 char *unescaped;
269
270 if (!(ptr = xp_get_value(name))) {
271 ERROR("%s is missing the required '%s' parameter.", what, name);
272 }
273
274 unescaped = (char *)malloc(strlen(ptr) + 1);
275 if (!unescaped) {
276 ERROR("Out of memory!");
277 }
278 xp_unescape(ptr, unescaped);
279
280 return unescaped;
281}
282
283static double xp_get_double(const char *name, const char *what)
284{

Callers 2

scenarioMethod · 0.85
parseActionMethod · 0.85

Calls 3

xp_get_valueFunction · 0.85
ERRORFunction · 0.85
xp_unescapeFunction · 0.85

Tested by

no test coverage detected