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

Function get_node_attr

modules/xml/xml.c:475–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475static xmlAttr *get_node_attr(xmlNode *node, str attr_name)
476{
477 xmlAttr *cur_attr;
478 str cur_attr_name;
479
480 for (cur_attr = node->properties; cur_attr; cur_attr = cur_attr->next) {
481 cur_attr_name.s = (char *)cur_attr->name;
482 cur_attr_name.len = strlen(cur_attr_name.s);
483 if (!str_strcmp(&cur_attr_name, &attr_name))
484 return cur_attr;
485 }
486
487 return NULL;
488}
489
490static str res_buf;
491

Callers 1

pv_get_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected