MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / pv_value_print

Function pv_value_print

pvar.c:5721–5738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5719}
5720
5721static str pv_value_print(const pv_value_t *val)
5722{
5723 str printed = str_init(NULL);
5724
5725 if (val->flags & PV_VAL_NULL)
5726 return str_null;
5727
5728 if (val->flags & PV_VAL_STR)
5729 return val->rs;
5730
5731 if (val->flags & (PV_VAL_INT|PV_TYPE_INT)) {
5732 printed.s = int2str(val->ri, &printed.len);
5733 return printed;
5734 }
5735
5736 LM_ERR("unknown type %x\n", val->flags);
5737 return str_empty;
5738}
5739
5740void pv_value_destroy(pv_value_t *val)
5741{

Callers 1

pv_printfFunction · 0.85

Calls 1

int2strFunction · 0.85

Tested by

no test coverage detected