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

Function new_part

parser/parse_body.c:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#define parse_hname(_b,_e,_h) parse_hname2((_b),(_e),(_h))
33
34static struct body_part * new_part(void)
35{
36 struct body_part * temp;
37
38 temp = pkg_malloc(sizeof (struct body_part));
39
40 if (temp == 0)
41 {
42 LM_ERR("Unable to allocate memory\n");
43 return 0;
44 }
45 memset(temp, 0, sizeof (struct body_part));
46
47 return temp;
48};
49
50
51static char* get_hdr_field_unparsed(char* buf, char* end,struct hdr_field* hdr)

Callers 1

parse_sip_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected