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

Function cJSON_New_Item

lib/cJSON.c:203–212  ·  view source on GitHub ↗

Internal constructor. */

Source from the content-addressed store, hash-verified

201
202/* Internal constructor. */
203static cJSON *cJSON_New_Item(void)
204{
205 cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON));
206 if (node)
207 {
208 memset(node, '\0', sizeof(cJSON));
209 }
210
211 return node;
212}
213
214/* Delete a cJSON structure. */
215void cJSON_Delete(cJSON *c)

Callers 15

cJSON_ParseWithOptsFunction · 0.70
parse_arrayFunction · 0.70
parse_objectFunction · 0.70
create_referenceFunction · 0.70
cJSON_CreateNullFunction · 0.70
cJSON_CreateTrueFunction · 0.70
cJSON_CreateFalseFunction · 0.70
cJSON_CreateBoolFunction · 0.70
cJSON_CreateNumberFunction · 0.70
cJSON_CreateStringFunction · 0.70
cJSON_CreateStrFunction · 0.70
cJSON_CreateRawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected